identify_predictors_categorical {collinear} | R Documentation |
Identify Valid Categorical Predictors
Description
Returns the names of character or factor predictors, if any. Removes categorical predictors with constant values, or with as many unique values as rows are in the input data frame.
Usage
identify_predictors_categorical(df = NULL, predictors = NULL)
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 |
Value
character vector: categorical predictors names
Author(s)
Blas M. Benito, PhD
See Also
Other data_types:
identify_predictors()
,
identify_predictors_numeric()
,
identify_predictors_type()
,
identify_predictors_zero_variance()
,
identify_response_type()
Examples
data(
vi,
vi_predictors
)
non.numeric.predictors <- identify_predictors_categorical(
df = vi,
predictors = vi_predictors
)
non.numeric.predictors
[Package collinear version 2.0.0 Index]