identify_predictors_numeric | R Documentation |
Returns the names of valid numeric predictors. Ignores predictors with constant values or with near-zero variance.
identify_predictors_numeric(df = NULL, predictors = NULL, decimals = 4)
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 |
decimals |
(required, integer) Number of decimal places for the zero variance test. Smaller numbers will increase the number of variables detected as near-zero variance. Recommended values will depend on the range of the numeric variables in 'df'. Default: 4 |
character vector: names of numeric predictors
Blas M. Benito, PhD
Other data_types:
identify_predictors()
,
identify_predictors_categorical()
,
identify_predictors_type()
,
identify_predictors_zero_variance()
,
identify_response_type()
if (interactive()) {
data(
vi,
vi_predictors
)
numeric.predictors <- identify_predictors_numeric(
df = vi,
predictors = vi_predictors
)
numeric.predictors
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.