outcome: Get the outcome as a vector

outcomeR Documentation

Get the outcome as a vector

Description

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

Usage

outcome(x)

Arguments

x

tabular data.

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.

Value

Vector containing the last column of x.

Author(s)

EDG

Examples

outcome(iris)

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.