Skip to contents

Returns all column names except the last one

Usage

feature_names(x)

Arguments

x

data.frame or similar.

Value

Character vector of feature names.

Details

This applied to tabular datasets used for supervised learning in rtemis, where, by convention, the last column is the outcome variable and all other columns are features.

Author

EDG

Examples

feature_names(iris)
#> [1] "Sepal.Length" "Sepal.Width"  "Petal.Length" "Petal.Width"