Find out about the variance of each feature and filter out the ones below a certain threshold

variance_thresholding(data, threshold = 0)

Arguments

data

tibble. The features to select from

threshold

double. The variance threshold

Value

vector. The indexes of selected features

Examples

data <- data.frame(x1=c(1,2,3,4,5), x2=c(0,0,0,0,0), x3=c(1,1,1,1,1)) variance_thresholding(data)
#> [1] 1
# [1] 1