Skip to contents

Uses the same type-inference logic as oda_fit() (“auto” mode) to report the likely ODA attribute type for each column.

Usage

oda_infer_attr_types(X, miss_codes = NULL)

Arguments

X

Data frame of predictors.

miss_codes

Numeric vector of missing-code values to exclude when counting unique levels (default NULL).

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