Top "Rpart" questions

An R package for fitting classification and regression trees.

What does the rpart "Error in as.character(x) : cannot coerce type 'builtin' to vector of type 'character' " message mean?

I've been banging my head against rpart for a few days now (trying to make classification trees for this dataset …

r rpart cart-analysis
R: plotting decision tree labels leaves text cut off

(I'm still learning how to handle images in R; this is sort of a continuation of rpart package: Save Decision …

r plot rpart
What is the difference between rel error and x error in a rpart decision tree?

I have a purely categorical dataframe from the UCI machine learning database https://archive.ics.uci.edu/ml/datasets/Diabetes+130…

r tree rpart
R caret package (rpart): constructing a classification tree

I am struggling for several days to perform a classification tree using the caret package. The problem are my factor …

r rpart r-caret
Calculating prediction accuracy of a tree using rpart's predict method

I have constructed a decision tree using rpart for a dataset. I have then divided the data into 2 parts - …

r machine-learning decision-tree rpart
How to prune a tree in R?

I'm doing a classification using rpart in R. The tree model is trained by: > tree <- rpart(activity ~ . , …

r machine-learning decision-tree rpart
Cross-validating a CART model

In an assignment, we are asked to perform a cross-validation on a CART model. I have tried using the cvFit …

r cross-validation rpart
there is no package called ‘rpart.plot’

I am following Titanic Tutorial on DataCamp. After built the decision tree, the plotting for the decision tree just doesn't …

r macos decision-tree rpart rattle
Caret train method complains Something is wrong; all the RMSE metric values are missing

On numerous occasions I've been getting this error when trying to fit a gbm or rpart model. Finally I was …

r machine-learning r-caret rpart gbm
Decision tree using continuous variable

I have a question about Decision tree using continuous variable I heard that when output variable is continuous and input …

r machine-learning cart decision-tree rpart