Learn R Programming

rtemis (version 1.4.3)

features: Get features from tabular data

Description

Returns all columns except the last one.

Usage

features(x)

Value

Object of the same class as the input, after removing the last column.

Arguments

x

tabular data: Input data to get features from.

Author

EDG

Details

This can be 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
features(iris) |> head()

Run the code above in your browser using DataLab