Skip to contents

Get the name of the last column

Usage

outcome_name(x)

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.

Author

EDG

Examples

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