Learn R Programming

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

The rpart package

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.

Overview

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.

Copy Link

Version

Install

install.packages('rpart')

Monthly Downloads

79,916

Version

4.1.16

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 24th, 2022

Functions in rpart (4.1.16)

printcp

Displays CP table for Fitted Rpart Object
kyphosis

Data on Children who have had Corrective Spinal Surgery
xpred.rpart

Return Cross-Validated Predictions
rpart.exp

Initialization function for exponential fitting
text.rpart

Place Text on a Dendrogram Plot
rpart.control

Control for Rpart Fits
cu.summary

Automobile Data from 'Consumer Reports' 1990
residuals.rpart

Residuals From a Fitted Rpart Object
snip.rpart

Snip Subtrees of an Rpart Object
rsq.rpart

Plots the Approximate R-Square for the Different Splits
prune.rpart

Cost-complexity Pruning of an Rpart Object
rpart.object

Recursive Partitioning and Regression Trees Object
solder.balance

Soldering of Components on Printed-Circuit Boards
meanvar.rpart

Mean-Variance Plot for an Rpart Object
post.rpart

PostScript Presentation Plot of an Rpart Object
predict.rpart

Predictions from a Fitted Rpart Object
labels.rpart

Create Split Labels For an Rpart Object
stagec

Stage C Prostate Cancer
summary.rpart

Summarize a Fitted Rpart Object
plot.rpart

Plot an Rpart Object
plotcp

Plot a Complexity Parameter Table for an Rpart Fit
na.rpart

Handles Missing Values in an Rpart Object
car.test.frame

Automobile Data from 'Consumer Reports' 1990
path.rpart

Follow Paths to Selected Nodes of an Rpart Object
rpart-internal

Internal Functions
car90

Automobile Data from 'Consumer Reports' 1990
rpart

Recursive Partitioning and Regression Trees
print.rpart

Print an Rpart Object