Skip to content
Prev 269041 / 398502 Next

How to count numbers of a vector and use them as index values?from Sabrina

Hi:

Another possibility is
[1] 0 2 2 1 0 1 0 0

where the second argument of tabulate() allows one to specify the
number of bins, in order from 1 up to the specified value, with all
others outside that range ignored.

HTH,
Dennis

On Thu, Aug 18, 2011 at 12:29 PM, Sabrina Friedman
<utebachmeier at gmail.com> wrote: