Learn R Programming

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

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 5th, 2023

Functions in rpart (4.1.23)

stagec

Stage C Prostate Cancer
rpart.object

Recursive Partitioning and Regression Trees Object
rsq.rpart

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

Snip Subtrees of an Rpart Object
solder.balance

Soldering of Components on Printed-Circuit Boards
printcp

Displays CP table for Fitted Rpart Object
summary.rpart

Summarize a Fitted Rpart Object
xpred.rpart

Return Cross-Validated Predictions
text.rpart

Place Text on a Dendrogram Plot
cu.summary

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

Automobile Data from 'Consumer Reports' 1990
rpart.control

Control for Rpart Fits
plotcp

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

Plot an Rpart Object
na.rpart

Handles Missing Values in an Rpart Object
post.rpart

PostScript Presentation Plot of an Rpart Object
labels.rpart

Create Split Labels For an Rpart Object
path.rpart

Follow Paths to Selected Nodes of an Rpart Object
predict.rpart

Predictions from a Fitted Rpart Object
rpart.exp

Initialization function for exponential fitting
meanvar.rpart

Mean-Variance Plot for an Rpart Object
car90

Automobile Data from 'Consumer Reports' 1990
rpart-internal

Internal Functions
rpart

Recursive Partitioning and Regression Trees
prune.rpart

Cost-complexity Pruning of an Rpart Object
residuals.rpart

Residuals From a Fitted Rpart Object
kyphosis

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

Print an Rpart Object