tabulate takes the integer-valued vector
bin and counts
the number of times each integer occurs in it.
a numeric vector (of positive integers), or a factor. Long vectors are supported.
the number of bins to be used.
tabulate is the workhorse for the
bin is a factor, its internal integer representation
If the elements of
bin are numeric but not integers,
they are truncated by
An integer vector (without names). There is a bin for each of the
1, ..., nbins; values outside that range and
are (silently) ignored.
On 64-bit platforms
bin can have 2^31 or more
elements and hence a count could exceed the maximum integer: this is
currently an error.
1 2 3 4 5