| colMeans,Assay-method | R Documentation |
Calculate rowSums, colSums,
rowMeans, and colMeans on Assay objects
## 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")
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 |
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
Assay
rna <- pbmc_small[["RNA"]]
colMeans(rna)
colSums(rna)
rowMeans(rna)
rowSums(rna)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.