.parse_categorical_features {familiar} | R Documentation |
Internal function for setting categorical features
Description
Internal function for setting categorical features
Usage
.parse_categorical_features(data, outcome_type, reference_method = "auto")
Arguments
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. |
Details
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.
Value
data.table with several features converted to factor.
[Package familiar version 1.5.0 Index]