variance_thresholding: Select features based on variance threshold

Description Usage Arguments Value Examples

View source: R/variance_thresholding.R

Description

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

Usage

1
variance_thresholding(data, threshold = 0)

Arguments

data

tibble. The features to select from

threshold

double. The variance threshold

Value

double vector. The indexes of selected features

Examples

1
2
3
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

UBC-MDS/feature-selection-r documentation built on April 27, 2020, 7:21 p.m.