Learn R Programming

SeuratObject (version 5.0.2)

colMeans,Seurat-method: Row and Column Sums and Means

Description

Calculate rowSums, colSums, rowMeans, and colMeans on Seurat objects

Usage

# S4 method for Seurat
colMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")

# S4 method for Seurat colSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")

# S4 method for Seurat rowMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")

# S4 method for Seurat rowSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")

Value

colMeans: the column (cell-wise) means of slot

colSums: the column (cell-wise) sums of slot

rowMeans: the row (feature-wise) means of slot

rowSums: the row (feature-wise) sums of slot

Arguments

x

A Seurat object

na.rm

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

dims

completely ignored by the Matrix methods.

...

potentially further arguments, for method <-> generic compatibility.

slot

Name of assay expression matrix to calculate column/row means/sums on

See Also

Seurat

Examples

Run this code
head(colMeans(pbmc_small))

head(colSums(pbmc_small))

head(rowMeans(pbmc_small))

head(rowSums(pbmc_small))

Run the code above in your browser using DataLab