Skip to contents

Get factor names

Usage

get_factor_names(x)

Arguments

x

data.frame or similar.

Value

Character vector of factor 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

get_factor_names(iris)
#> [1] "Species"