Learn R Programming

explore (version 1.3.4)

drop_var_low_variance: Drop all variables with low variance

Description

Drop all variables with low variance

Usage

drop_var_low_variance(data, max_prop = 0.99)

Value

Data frame

Arguments

data

Data frame

max_prop

Maximum proportion of values without variance

Examples

Run this code
data <- data.frame(a = 1:100, b = c(0, rep(1, 99)))
drop_var_low_variance(data, max_prop = 0.9)

Run the code above in your browser using DataLab