Infer attribute types from a predictor data frame
Source:R/production_tools.R
oda_infer_attr_types.RdUses the same type-inference logic as oda_fit() (“auto”
mode) to report the likely ODA attribute type for each column.
Value
Data frame with one row per column in X:
attribute (character), inferred_type (one of
"ordered", "categorical", "binary"),
n_unique (integer, excluding miss_codes and NA),
n_missing (integer, NA count),
n_miss_code (integer, miss_code hit count).