Returns the numeric columns among the features (all columns except the last).
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
numeric_features(iris) |> head()
#> Sepal.Length Sepal.Width Petal.Length Petal.Width
#> 1 5.1 3.5 1.4 0.2
#> 2 4.9 3.0 1.4 0.2
#> 3 4.7 3.2 1.3 0.2
#> 4 4.6 3.1 1.5 0.2
#> 5 5.0 3.6 1.4 0.2
#> 6 5.4 3.9 1.7 0.4