numeric_features: Get numeric features from tabular data

numeric_featuresR Documentation

Get numeric features from tabular data

Description

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

Usage

numeric_features(x)

Arguments

x

tabular data: Input data to get numeric features from.

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), ...).

Value

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

Author(s)

EDG

Examples

numeric_features(iris) |> head()

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