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

binned_tabulate

Fast tabulating in different bins


Description

binned_sum implements fast tabulating for given bins by calling c-code. It also returns the number of NA's per bin. Please note that incorrect use of this function may crash your R-session. the values of bins must be between 1 and nbins and may not contain NA. The values of x must be between 1 and nlevels.

Usage

binned_tabulate(x, bin, nbins = max(bin), nlevels = nlevels(x), ...)

## Default S3 method:
binned_tabulate(x, bin, nbins = max(bin), nlevels = nlevels(x), ...)

## S3 method for class 'ff'
binned_tabulate(x, bin, nbins = max(bin), nlevels = nlevels(x), ...)

Arguments

x

factor or integer vector with the data to be tabulated

bin

integer vector with the bin number for each data point

nbins

integer maximum bin number

nlevels

integer number of levels used in x

...

used by binned_tabulate.ff

Value

numeric matrix where each row is a bin and each column a level


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.