Internal function to identify predictor types. The supported types are:
"numeric": all predictors belong to the classes "numeric" and/or "integer".
"categorical": all predictors belong to the classes "character" and/or "factor".
"mixed": predictors are of types "numeric" and "categorical".
"unknown": predictors of unknown type.
Arguments
- df
(required; data frame, tibble, or sf) A data frame with responses and predictors. Default: NULL.
- predictors
(optional; character vector) Names of the predictors to select from
df
. If omitted, all numeric columns indf
are used instead. If argumentresponse
is not provided, non-numeric variables are ignored. Default: NULL
See also
Other data_types:
identify_predictors()
,
identify_predictors_categorical()
,
identify_predictors_numeric()
,
identify_predictors_zero_variance()
,
identify_response_type()