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 = twidlr::rpart(mtcars, disp~.)
f_model_importance_rpart(m)

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

erblast/oetteR documentation built on Feb. 15, 2018, 5:12 p.m.