nonzeroRowsAndCols | R Documentation |
Subset object to keep only non-zero rows and columns
nonzeroRowsAndCols(object, ...)
## S4 method for signature 'Matrix'
nonzeroRowsAndCols(object, quiet = FALSE)
## S4 method for signature 'SummarizedExperiment'
nonzeroRowsAndCols(object, assay = 1L, quiet = FALSE)
## S4 method for signature 'matrix'
nonzeroRowsAndCols(object, quiet = FALSE)
object |
Object. |
quiet |
|
assay |
|
... |
Additional arguments. |
Modified object.
Updated 2021-02-02.
data(RangedSummarizedExperiment, package = "AcidTest")
## SummarizedExperiment ====
object <- RangedSummarizedExperiment
dim(object)
x <- nonzeroRowsAndCols(object)
dim(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.