prune.rpart.Rd
Determines a nested sequence of subtrees of the supplied rpart
object
by recursively snipping
off the least important splits, based on the
complexity parameter (cp
).
prune(tree, ...) # S3 method for rpart prune(tree, cp, ...)
tree | fitted model object of class |
---|---|
cp | Complexity parameter to which the |
... | further arguments passed to or from other methods. |
A new rpart
object that is trimmed to the value cp
.