var_filter | R Documentation |
Perform variable filtering based on feature variability measurement such as standard deviation(SD) and inter-quantile range(IQR).
var_filter(x, method = "IQR", na.rm = FALSE, thres = 0.25)
x |
a matrix or data frame. |
method |
variability measurement method, such as |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
thres |
a numeric value between 0 and 1 for the threshold of
|
a list of with contents:
dat the filtered data matrix
idx a vector of filtering index.
Other variable filters:
blank_filter()
,
locfdr_filter()
,
mv_filter()
,
qc_filter()
,
rsd_filter()
set.seed(100)
x <- matrix(rnorm(20 * 10), ncol = 10)
res <- var_filter(x, method = "sd", thres = 0.25)
sum(res$idx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.