Category:Decision Trees: Pruning DTs

Package Rpart
The Rpart package provides a function for pruning the rpart tree: prune(rpart_tree)

For example:

rpart_tree <- rpart(formula, data)

prune(rpart_tree)

The resulting tree will be pruned.