Description Usage Arguments Value See Also Examples
Some utilities to operate natively on sparseMatrix objects (e.g. dgCMatrix and lgCMatrix objects) from the Matrix package. Mostly for internal use by the DelayedArray package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## rowsum() and colsum() S4 generics:
#rowsum(x, group, reorder=TRUE, ...)
#colsum(x, group, reorder=TRUE, ...)
## Default methods:
## S4 method for signature 'ANY'
rowsum(x, group, reorder=TRUE, ...)
## S4 method for signature 'ANY'
colsum(x, group, reorder=TRUE, ...)
## rowsum() method for dgCMatrix objects:
## S4 method for signature 'dgCMatrix'
rowsum(x, group, reorder=TRUE, ...)
|
x |
A numeric matrix-like object. |
group, reorder, ... |
See |
See ?base::rowsum for the value returned
by the default rowsum method.
The default colsum method returns
t(rowsum(t(x), group, reorder=reorder, ...)).
DelayedMatrix-utils in this package for the rowsum
and colsum methods defined for DelayedMatrix objects.
base::rowsum in the base package for
the default rowsum method.
dgCMatrix objects in the Matrix package.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.