colMeans,Seurat-method {SeuratObject} | R Documentation |
Row and Column Sums and Means
Description
Calculate rowSums
, colSums
,
rowMeans
, and colMeans
on
Seurat
objects
Usage
## S4 method for signature 'Seurat'
colMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")
## S4 method for signature 'Seurat'
colSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")
## S4 method for signature 'Seurat'
rowMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")
## S4 method for signature 'Seurat'
rowSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")
Arguments
x |
A |
na.rm |
logical. Should missing values (including |
dims |
completely ignored by the |
... |
potentially further arguments, for method |
slot |
Name of assay expression matrix to calculate column/row means/sums on |
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
See Also
Examples
head(colMeans(pbmc_small))
head(colSums(pbmc_small))
head(rowMeans(pbmc_small))
head(rowSums(pbmc_small))
[Package SeuratObject version 5.1.0 Index]