Description Usage Arguments Value
Prunes an rpart
tree to have the desired number of nodes.
1 | prune_tree(tree, maxn)
|
tree |
the tree to prune, an |
maxn |
desired number of terminal nodes. |
The pruned tree, an rpart
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.