Learn R Programming

rtemis (version 1.4.3)

outcome_name: Get the name of the last column

Description

Get the name of the last column

Usage

outcome_name(x)

Value

Name of the last column.

Arguments

x

tabular data.

Author

EDG

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

Run this code
outcome_name(iris)

Run the code above in your browser using DataLab