Get the name of the last column
Arguments
- x
data.frame or similar.
Value
Name of the last column.
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
outcome_name(iris)
#> [1] "Species"