Description Usage Arguments Details Value Author(s) Examples
View source: R/downsampleByVar.R
Downsample an input data-frame or matrix based on variance.
1 | downsampleByVar(x, varianceFactor = 0.1, verbose = TRUE)
|
x |
Input data-matrix. |
varianceFactor |
Removes this proportion of variables based on lesser variance. |
verbose |
Boolean (TRUE / FALSE) to print messages to console or not. |
Downsample an input data-frame or matrix based on variance.
A matrix
object.
Kevin Blighe <kevin@clinicalbioinformatics.co.uk>
1 2 3 4 5 6 | # create random data that follows a negative binomial
mat <- jitter(matrix(
MASS::rnegbin(rexp(1000, rate=.1), theta = 4.5),
ncol = 20))
downsampleByVar(mat, varianceFactor = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.