variable_importance: Get variable importance from data frame with models objects.

Description Usage Arguments Value

View source: R/variable_importance.R

Description

Get variable importance from data frame with models objects.

Usage

1
variable_importance(data, long = FALSE, keep_vars = NULL, ...)

Arguments

data

A data frame with column "model" containing the model objects.

long

Boolean. Whether output should be as "long" table suited for plotting. Default is FALSE.

keep_vars

Optional character of variables to keep while unnesting.

Value

Input data frame with added column "var_imp" containing relative variable importance.


juoe/sdmflow documentation built on Feb. 23, 2020, 7:38 p.m.