.parse_categorical_features {familiar} | R Documentation |
Internal function for setting categorical features
.parse_categorical_features(data, outcome_type, reference_method = "auto")
data |
data.table with feature data |
outcome_type |
character, indicating the type of outcome |
reference_method |
character, indicating the type of method used to set the reference level. |
This function parses columns containing feature data to factors if
the data contained therein have logical (TRUE, FALSE), character, or factor
classes. Unless passed as feature names with reference
, numerical data,
including integers, are not converted to factors.
data.table with several features converted to factor.