

   tabulate {base}                              R Documentation

   TTaabbuullaattiioonn ffoorr VVeeccttoorrss

   DDeessccrriippttiioonn::

        `tabulate' takes the integer valued vector `bin' and
        counts the number of times each integer occurs in it.
        `tabulate' is used as the basis of the `table' func-
        tion.

   UUssaaggee::

        tabulate(bin, nbin=max(1,bin))

   AArrgguummeennttss::

        bin: a vector of integers, or a factor.

      nbins: the number of bins to be used.

   DDeettaaiillss::

        If `bin' is a factor, its internal integer representa-
        tion is tabulated.  If the elements of `bin' are not
        integers, they are rounded to the nearest integer.
        Elements outside the range `1,...,      nbin' are
        (silently) ignored in the tabulation.

   SSeeee AAllssoo::

        `factor', `table'.

   EExxaammpplleess::

        tabulate(c(2,3,5))
        tabulate(c(2,3,3,5), nb = 10)
        tabulate(c(-2,0,2,3,3,5), nb = 3)
        tabulate(factor(letters[1:10]))

