Description Usage Arguments Value Functions
The predicate function zero_variance
checks to see if the variance of a column
is lower than a pre-defined threshold. The function nzv
applies the predicate
to a data frame and drops the columns that fail the test.
1 2 3 | nzv(.data, .target = "target", .thresh = 1e-04)
zero_variance(.col, .thresh)
|
.data |
A data frame |
.thresh |
A minimal theshold for non-zero variance |
.col |
A column of a data frame |
A data frame with the zero variance columns removed
zero_variance
: Predicate function to see if a column is zero variance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.