build_model.rpart: build_model.rpart

Description Usage Arguments Value Examples

Description

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

Usage

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

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

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