Learn R Programming

rtemis (version 1.4.3)

outcome: Get the outcome as a vector

Description

Returns the last column of x, which is by convention the outcome variable.

Usage

outcome(x)

Value

Vector containing the last column of x.

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(iris)

Run the code above in your browser using DataLab