f_model_importance_rpart: extract variable importance for rpart

Usage Arguments Value Examples

View source: R/f_model_imp.R

Usage

1

Arguments

m

model of class rpart

Value

dataframe

Examples

1
2
3
4
5
6
7
8
#regression
m = rpart::rpart(mtcars, disp~.)
f_model_importance_rpart(m)

#classification
data_ls = f_clean_data(mtcars)
m = rpart::rpart(data_ls$data, cyl~.)
f_model_importance_rpart(m)

erblast/oetteR documentation built on Aug. 4, 2018, 11:03 p.m.