identify_predictors_categorical | R Documentation |
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.
identify_predictors_categorical(df = NULL, predictors = NULL)
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 |
character vector: categorical predictors names
Blas M. Benito, PhD
Other data_types:
identify_predictors()
,
identify_predictors_numeric()
,
identify_predictors_type()
,
identify_predictors_zero_variance()
,
identify_response_type()
data(
vi,
vi_predictors
)
non.numeric.predictors <- identify_predictors_categorical(
df = vi,
predictors = vi_predictors
)
non.numeric.predictors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.