View source: R/filterVariance.R
filterVariance | R Documentation |
Filter for high variance signals
filterVariance(
vars,
method = c("mean", "median", "q25", "q75", "none"),
verbose = TRUE
)
vars |
Numeric vector, variances of signals |
method |
Character, filtering method. One of "mean" (default), "median", "q25", "q75" (25 and 75% quantile) or "none". |
verbose |
Logical, print logs to console. |
Indices of spectra with a high variance
data(Blank2022intmat)
# get variance of each peak
vars <- apply(Blank2022intmat, 2, var)
highVarIndicies <- filterVariance(vars, method = "mean", verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.