rsd_filter: Filtering variable based on relative standard deviation (RSD)

View source: R/mt_extra.R

rsd_filterR Documentation

Filtering variable based on relative standard deviation (RSD)

Description

Filtering variable based on relative standard deviation (RSD).

Usage

rsd_filter(x, thres = 20)

Arguments

x

a data frame where columns are features.

thres

threshold of RSD. Features less than this threshold will be kept.

Value

a list of with contents:

  • dat the filtered data matrix

  • idx a logical vector of index for keeping features.

See Also

Other variable filters: blank_filter(), locfdr_filter(), mv_filter(), qc_filter(), var_filter()

Examples

 x <- matrix(rnorm(20 * 20), ncol = 20)
 res <- rsd_filter(x, thres = 30)
 dim(res$dat)

wanchanglin/mtExtra documentation built on Aug. 2, 2024, 5:47 p.m.