prune_tree {jlctree} | R Documentation |
rpart
tree to have the desired number of nodes.Prunes an rpart
tree to have the desired number of nodes.
prune_tree(tree, maxn)
tree |
the tree to prune, an |
maxn |
desired number of terminal nodes. |
The pruned tree, an rpart
object.