binned_sum: Fast summing in different bins
Description
binned_sum
implements fast summing for given bins
by calling c-code.Usage
binned_sum(x, bin, nbins = max(bin))
## S3 method for class 'ff':
binned_sum(x, bin, nbins = max(bin), ...)
Arguments
x
numeric
vector with the data to be
summed
bin
integer
vector with the bin number for
each data point
nbins
integer
maximum bin number
Value
numeric
matrix where each row is a bin