View source: R/variance_threshold.R
| variance_threshold | R Documentation |
variance_threshold returns list of variables that have near-zero
variance.
variance_threshold(variables, sample)
variables |
character vector specifying observation variables. |
sample |
tbl containing sample used to estimate parameters. |
variance_threshold is a reimplementation of caret::nearZeroVar,
using the default values for freqCut and uniqueCut.
character vector specifying observation variables to be excluded.
sample <- tibble::tibble(
AreaShape_Area = c(10, 12, 15, 16, 8, 8, 7, 7, 13, 18),
AreaShape_Euler = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
)
variables <- c("AreaShape_Area", "AreaShape_Euler")
variance_threshold(variables, sample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.