rpart v4.1-15


Monthly downloads



Recursive Partitioning and Regression Trees

Recursive partitioning for classification, regression and survival trees. An implementation of most of the functionality of the 1984 book by Breiman, Friedman, Olshen and Stone.


The rpart package Rpart logo

CRAN_STATUS_BADGE Downloads Travis-CI Build Status

This is the source code for the rpart package, which is a recommended package in R. It gets posted to the comprehensive R archive (CRAN) as needed after undergoing a thorough testing.


The rpart code builds classification or regression models of a very general structure using a two stage procedure; the resulting models can be represented as binary trees. The package implements many of the ideas found in the CART (Classification and Regression Trees) book and programs of Breiman, Friedman, Olshen and Stone. Because CART is the trademarked name of a particular software implementation of these ideas and tree was used for the Splus routines of Clark and Pregibon, a different acronym - Recursive PARTitioning or rpart - was chosen.

Functions in rpart

Name Description
rpart-internal Internal Functions
rpart.control Control for Rpart Fits
prune.rpart Cost-complexity Pruning of an Rpart Object
text.rpart Place Text on a Dendrogram Plot
residuals.rpart Residuals From a Fitted Rpart Object
xpred.rpart Return Cross-Validated Predictions
meanvar.rpart Mean-Variance Plot for an Rpart Object
stagec Stage C Prostate Cancer
summary.rpart Summarize a Fitted Rpart Object
post.rpart PostScript Presentation Plot of an Rpart Object
predict.rpart Predictions from a Fitted Rpart Object
print.rpart Print an Rpart Object
printcp Displays CP table for Fitted Rpart Object
rpart Recursive Partitioning and Regression Trees
rsq.rpart Plots the Approximate R-Square for the Different Splits
rpart.object Recursive Partitioning and Regression Trees Object
rpart.exp Initialization function for exponential fitting
snip.rpart Snip Subtrees of an Rpart Object
solder.balance Soldering of Components on Printed-Circuit Boards
na.rpart Handles Missing Values in an Rpart Object
car90 Automobile Data from 'Consumer Reports' 1990
car.test.frame Automobile Data from 'Consumer Reports' 1990
path.rpart Follow Paths to Selected Nodes of an Rpart Object
kyphosis Data on Children who have had Corrective Spinal Surgery
plot.rpart Plot an Rpart Object
plotcp Plot a Complexity Parameter Table for an Rpart Fit
labels.rpart Create Split Labels For an Rpart Object
cu.summary Automobile Data from 'Consumer Reports' 1990
No Results!

Vignettes of rpart

No Results!

Last month downloads


Priority recommended
Date 2019-04-10
License GPL-2 | GPL-3
LazyData yes
ByteCompile yes
NeedsCompilation yes
Repository CRAN
URL https://github.com/bethatkinson/rpart, https://cran.r-project.org/package=rpart
BugReports https://github.com/bethatkinson/rpart/issues
Packaged 2019-04-11 15:59:38 UTC; atkinson
Date/Publication 2019-04-12 14:32:39 UTC

Include our badge in your README