nzv: Remove Zero variance Columns from a data frame

Description Usage Arguments Value Functions

Description

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.

Usage

1
2
3
nzv(.data, .target = "target", .thresh = 1e-04)

zero_variance(.col, .thresh)

Arguments

.data

A data frame

.thresh

A minimal theshold for non-zero variance

.col

A column of a data frame

Value

A data frame with the zero variance columns removed

Functions


michaelquinn32/adventureR documentation built on May 22, 2019, 9:52 p.m.