extract_params.rpart: extract_params.rpart

Description Usage Arguments Value Examples

Description

Extracts parameters from a tree made by the rpart() function

Usage

1
2
## S3 method for class 'rpart'
extract_params(object, ...)

Arguments

object

an object of class "rpart"

...

further arguments passed to or from other methods

Value

a list that is extracted from the rpart object

Examples

1
2
model <- rpart::rpart(Kyphosis ~ Age + as.factor(Number), data = rpart::kyphosis)
my_tree <- extract_params(model)

aurelius documentation built on May 2, 2019, 3:43 a.m.