Fast conditional sum
bySum
works like a very fast version of tapply with (weighted) FUN=sum
.
bySum(x, by, na.rm = FALSE, weight = NULL, ...)
x |
|
by |
(list of) |
na.rm |
|
weight |
|
... |
not used |
array
with dimensions of by
bySum(warpbreaks$breaks, warpbreaks$wool) bySum(warpbreaks$breaks, warpbreaks[,-1])
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.