Returns all column names except the last one
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.
Examples
feature_names(iris)
#> [1] "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width"