remove_var | R Documentation |
This function removes the p lowest variance features from a matrix. The function expects features in rows and samples in columns (e.g. an expression matrix).
remove_var(x, ...)
## S3 method for class 'matrix'
remove_var(x, p)
## S3 method for class 'data.frame'
remove_var(x, p)
## S3 method for class 'SummarizedExperiment'
remove_var(x, p, assay = "counts")
x |
matrix, numeric data.frame, or SummarizedExperiment object |
p |
proportion of low variance features to remove |
assay |
if SummarizedExperiment, what assay to use. Default = "counts" |
matrix with lowest variance features removed
# Remove 80% lowest variance features
removed <- remove_var(GSE161650_lc, p = 0.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.