nonzeroRowsAndCols: Subset object to keep only non-zero rows and columns

nonzeroRowsAndColsR Documentation

Subset object to keep only non-zero rows and columns

Description

Subset object to keep only non-zero rows and columns

Usage

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)

Arguments

object

Object.

quiet

logical(1). Perform command quietly, suppressing messages.

assay

vector(1). Assay name or index position.

...

Additional arguments.

Value

Modified object.

Note

Updated 2021-02-02.

Examples

data(RangedSummarizedExperiment, package = "AcidTest")

## SummarizedExperiment ====
object <- RangedSummarizedExperiment
dim(object)
x <- nonzeroRowsAndCols(object)
dim(x)

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.