Skip to contents

Keep named measures and observed fold rows intact. Summaries are computed separately so this boundary can also supply distribution views.

Usage

varimp_data(x)

Arguments

x

Numeric vector, single-column matrix, or data frame: Importance data.

Value

Data frame with variable, named measures, and optionally fold.

Examples

varimp_data(c(age = 2, weight = 1))
#>   variable importance
#> 1      age          2
#> 2   weight          1