Computes distributional metrics for numeric variables and uses a pretrained random-forest model to classify each variable as nominal (N), ordinal (O), or scale (S). Non-numeric variables are handled deterministically: character/logical variables are marked as nominal, date variables as ordinal, and unsupported types receive empty predictions.
Value
A tibble with one row per input variable and the following columns:
- variable
Original variable name.
- .pred_class
Predicted class (N, O, or S).
- .pred_N
Probability of nominal class.
- .pred_O
Probability of ordinal class.
- .pred_S
Probability of scale class.
Rows are returned in the same order as the columns of data. For variables
that are not processed by the model, probability columns are NA.
