`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. |

character vector specifying observation variables to be excluded.

`variance_threshold`

is a reimplementation of `caret::nearZeroVar`

,
using the default values for `freqCut`

and `uniqueCut`

.

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)#> [1] "AreaShape_Euler"