Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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), ...)

## Default S3 method:
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

...

used by binned_sum.ff

Value

numeric matrix where each row is a bin


ffbase

Basic Statistical Functions for Package 'ff'

v0.13.3
GPL-3
Authors
Edwin de Jonge, Jan Wijffels, Jan van der Laan
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.