build_model.rpart {aurelius}R Documentation

build_model.rpart

Description

Builds an entire PFA list of lists based on a single tree

Usage

## S3 method for class 'rpart'
build_model(object, ...)

Arguments

object

a object of class "rpart"

...

further arguments passed to or from other methods

Value

a list of lists representation of the tree that can be inserted into a cell or pool

Examples

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

[Package aurelius version 0.8.4 Index]