powered by
Extracts parameters from a tree made by the rpart() function
# S3 method for rpart extract_params(object, ...)
an object of class "rpart"
further arguments passed to or from other methods
a list that is extracted from the rpart object
list
model <- rpart::rpart(Kyphosis ~ Age + as.factor(Number), data = rpart::kyphosis) my_tree <- extract_params(model)
Run the code above in your browser using DataLab