Learn R Programming

SeuratObject (version 5.0.2)

v5-assay-summaries: V5 Assay Summaries

Description

Summary maths for StdAssay Objects

Usage

# S4 method for StdAssay
colMeans(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

# S4 method for StdAssay colSums(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

# S4 method for StdAssay rowMeans(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

# S4 method for StdAssay rowSums(x, na.rm = FALSE, dims = 1, layer = NULL, ...)

Value

The results of the summary math function for the layer specified

Arguments

x

an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame. For .colSums() etc, a numeric, integer or logical matrix (or vector of length m * n).

na.rm

logical. Should missing values (including NaN) be omitted from the calculations?

dims

integer: Which dimensions are regarded as ‘rows’ or ‘columns’ to sum over. For row*, the sum or mean is over dimensions dims+1, ...; for col* it is over dimensions 1:dims.

layer

Name of layer to run function on

...

Ignored