extract_params.rpart {aurelius}R Documentation

extract_params.rpart

Description

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

Usage

## 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

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

[Package aurelius version 0.8.4 Index]