View source: R/general.purpuse.utilities.R
calcColSums | R Documentation |
Calculates row sums for matrix subsets
calcColSums(d, f, mean = FALSE)
d |
matrix |
f |
character vector, factor to split matrix columns (length should be equal to nrow(d)) |
mean |
logical, calculate mean instead of sum |
matrix with number of rows equal to nrow(d) and number of columns equal to number of unique(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.