remove.low.cv: Remove features with low variation

Description Usage Arguments Value Examples

View source: R/remove.low.cv.R

Description

remove.low.cv that removes variables with low variation. From a matrix/data.frame (samples in rows, features in columns), it computes the coefficient of variation for every features (columns) and return a filtered data.frame with features for which the coefficient of variation is above a given threshold.

Usage

1
remove.low.cv(X, cutoff = 0.5)

Arguments

X

a matrix/data.frame

cutoff

a numeric value

Value

a data.frame/matrix

Examples

1
2
mat <- matrix(sample(1:3, size = 200, replace = TRUE), ncol=20)
remove.low.cv(mat, 0.4)

abodein/timeOmics documentation built on Oct. 29, 2021, 8:22 p.m.