Learn R Programming

⚠️There's a newer version (1.0-45) of this package.Take me there.

tree (version 1.0-20)

Classification and regression trees

Description

Classification and Regression Trees.

Copy Link

Version

Install

install.packages('tree')

Monthly Downloads

9,838

Version

1.0-20

License

GPL (version 2 or later)

Maintainer

Brian Ripley

Last Published

August 18th, 2025

Functions in tree (1.0-20)

prune.tree

Cost-complexity Pruning of Tree Object
snip.tree

Snip Parts of Tree Objects
cv.tree

Cross-validation for Choosing Tree Complexity
na.tree.replace

Replace 'NA's in Predictor Variables
tree-internal

Internal Functions Used by the 'tree' Package
tree.screens

Split Screen for Plotting Trees
text.tree

Annotate a Tree Plot
plot.tree

Plot a Tree Object
partition.tree

Plot the Partitions of a simple Tree Model
predict.tree

Predictions from a Fitted Tree Object
tile.tree

Add Class Barplots to a Classification Tree Plot
plot.tree.sequence

Plot a Tree Sequence
tree.control

Select Parameters for Tree
misclass.tree

Misclassifications by a Classification Tree
deviance.tree

Extract Deviance from a Tree Object
tree

Fit a Classification or Regression Tree