Description Usage Arguments Value Author(s) See Also
groupsum
extends rowsum
: it allows group
to be an array of the same shape
as x
.
1 2 3 4 5 6 7 8 9 |
x |
array to be |
group |
grouping variable (integer or factor) indicating groups of samples. |
dim |
along which dimension should the group sums be taken? (default: rows) |
reorder |
should the groups be ordered? see |
na.rm |
shoud |
... |
ignored |
drop |
should 1d arrays drop to vectors? |
like rowsum
, but further dimensions of the array are preserved.
Claudia Beleites
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.