Description Usage Arguments Value Examples
Extracts parameters from a tree made by the rpart() function
1 2 | ## S3 method for class 'rpart'
extract_params(object, ...)
|
object |
an object of class "rpart" |
... |
further arguments passed to or from other methods |
a list
that is extracted from the rpart object
1 2 | model <- rpart::rpart(Kyphosis ~ Age + as.factor(Number), data = rpart::kyphosis)
my_tree <- extract_params(model)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.