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.19

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

October 21st, 2022

Functions in rpart (4.1.19)

post.rpart

PostScript Presentation Plot of an Rpart Object
rpart.control

Control for Rpart Fits
print.rpart

Print an Rpart Object
printcp

Displays CP table for Fitted Rpart Object
residuals.rpart

Residuals From a Fitted Rpart Object
prune.rpart

Cost-complexity Pruning of an Rpart Object
text.rpart

Place Text on a Dendrogram Plot
xpred.rpart

Return Cross-Validated Predictions
snip.rpart

Snip Subtrees of an Rpart Object
predict.rpart

Predictions from a Fitted Rpart Object
solder.balance

Soldering of Components on Printed-Circuit Boards
rpart-internal

Internal Functions
summary.rpart

Summarize a Fitted Rpart Object
stagec

Stage C Prostate Cancer
rpart

Recursive Partitioning and Regression Trees
rpart.exp

Initialization function for exponential fitting
rsq.rpart

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

Recursive Partitioning and Regression Trees Object
na.rpart

Handles Missing Values in an Rpart Object
path.rpart

Follow Paths to Selected Nodes of an Rpart Object
cu.summary

Automobile Data from 'Consumer Reports' 1990
car.test.frame

Automobile Data from 'Consumer Reports' 1990
meanvar.rpart

Mean-Variance Plot for an Rpart Object
kyphosis

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

Create Split Labels For an Rpart Object
plot.rpart

Plot an Rpart Object
plotcp

Plot a Complexity Parameter Table for an Rpart Fit
car90

Automobile Data from 'Consumer Reports' 1990