colMeans,Assay-method {SeuratObject} | R Documentation |
Row and Column Sums and Means
Description
Calculate rowSums
, colSums
,
rowMeans
, and colMeans
on Assay
objects
Usage
## S4 method for signature 'Assay'
colMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")
## S4 method for signature 'Assay'
colSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")
## S4 method for signature 'Assay'
rowMeans(x, na.rm = FALSE, dims = 1, ..., slot = "data")
## S4 method for signature 'Assay'
rowSums(x, na.rm = FALSE, dims = 1, ..., slot = "data")
Arguments
x |
An |
na.rm |
logical. Should missing values (including |
dims |
completely ignored by the |
... |
Ignored |
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
rna <- pbmc_small[["RNA"]]
colMeans(rna)
colSums(rna)
rowMeans(rna)
rowSums(rna)
[Package SeuratObject version 5.1.0 Index]