tidy.rpart | R Documentation |
tidy returns a tibble of variable importance for the rpart pacakge
## S3 method for class 'rpart'
tidy(x, ...)
x |
An |
... |
extra functions or arguments |
A tibble containing the importance score for each variable
# retrieve a tibble of the variable importance from an rpart model
library(rpart)
fit_rpart <- rpart(Kyphosis ~ Age + Number + Start, data = kyphosis)
tidy(fit_rpart)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.