powered by
Builds an entire PFA list of lists based on a single tree
# S3 method for rpart build_model(object, ...)
a object of class "rpart"
further arguments passed to or from other methods
a list of lists representation of the tree that can be inserted into a cell or pool
list
model <- rpart::rpart(Kyphosis ~ Age + as.factor(Number), data = rpart::kyphosis) my_tree <- build_model(model)
Run the code above in your browser using DataLab