# rpart

> Recursive partitioning for classification, regression and survival trees in R

Source: https://talira.ai/catalog/rpart-xk21snfd
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / ml / classical ml](https://talira.ai/categories/ai/ml/classical-ml), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-only OR GPL-3.0-only[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Beth Atkinson](https://talira.ai/orgs/beth-atkinson.md), [Terry Therneau](https://talira.ai/orgs/terry-therneau.md)

rpart is R's recursive partitioning package for building classification, regression and survival trees: a two-stage procedure whose models can be represented as binary trees. It implements most of the functionality of the 1984 CART book by Breiman, Friedman, Olshen and Stone (the name rpart, for Recursive PARTitioning, avoids the trademarked CART). It's one of R's recommended packages and supports user-written split functions.

## Links

- GitHub: https://github.com/bethatkinson/rpart
- Docs: https://cran.r-project.org/package=rpart

## Problems it solves

- fit a decision tree for classification or regression in R
- build a survival tree in R
- use CART-style recursive partitioning on my data

## Features

- classification, regression and survival trees
- a two-stage procedure producing binary-tree models
- implements most of the CART book's methods
- user-written split functions

## Trust

Overall: 0.34 out of 1.
Signals: maintenance 0.48, adoption 0.35, momentum 0.06, community 0.51, backing 0.30, extensibility 0.00.

- last commit 2 months ago
- 5 commits in the last 90 days
- 58 GitHub stars
- 18 contributors
- backed by Beth Atkinson and Terry Therneau

## Alternatives

- [ranger (R)](https://talira.ai/catalog/ranger-r-aj79rspj.md): Fast random forests for R and C++, suited to high-dimensional data

## Sources

[^1]: https://cran.r-project.org/package=rpart (checked 28 Nov 2026)
