prune_tree: Prunes an 'rpart' tree to have the desired number of nodes.

Description Usage Arguments Value

Description

Prunes an rpart tree to have the desired number of nodes.

Usage

1
prune_tree(tree, maxn)

Arguments

tree

the tree to prune, an rpart object.

maxn

desired number of terminal nodes.

Value

The pruned tree, an rpart object.


jlctree documentation built on May 2, 2019, 1:07 p.m.