Description Usage Arguments Value
View source: R/decision_tree.R
rpart_train
is a wrapper for rpart()
treebased models
where all of the model arguments are in the main function.
1 2 3 4 5 6 7 8 9 
formula 
A model formula. 
data 
A data frame. 
weights 
Optional case weights. 
cp 
A nonnegative number for complexity parameter. Any split
that does not decrease the overall lack of fit by a factor of

minsplit 
An integer for the minimum number of observations that must exist in a node in order for a split to be attempted. 
maxdepth 
An integer for the maximum depth of any node
of the final tree, with the root node counted as depth 0.
Values greater than 30 
... 
Other arguments to pass to either 
A fitted rpart model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.