Learn R Programming

rtemis (version 1.4.3)

numeric_features: Get numeric features from tabular data

Description

Returns the numeric columns among the features (all columns except the last).

Usage

numeric_features(x)

Value

Object of the same class as the input, containing only the numeric feature columns.

Arguments

x

tabular data: Input data to get numeric features from.

Author

EDG

Details

Mirrors features(): by rtemis convention the last column is the outcome variable and all other columns are features. This drops the outcome, then keeps the numeric features (both double and integer). Useful, for example, to feed only the continuous features to a decomposition: decomp(numeric_features(iris), ...).

Examples

Run this code
numeric_features(iris) |> head()

Run the code above in your browser using DataLab