colSums | R Documentation |
This function takes a snap object and returns the column sums of its count matrix.
## S4 method for signature 'snap' colSums(x, mat = c("bmat", "pmat", "gmat"), na.rm = TRUE)
x |
A snap object |
mat |
A charater object indicates what matrix slot to use c("bmat", "pmat", "gmat") |
na.rm |
A logical variable indicates wether to remove NA in the matrix |
data(demo.sp); a = colSums(demo.sp, mat="bmat"); b = colSums(demo.sp, mat="pmat"); d = colSums(demo.sp, mat="gmat");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.