tabulate                package:base                R Documentation

_T_a_b_u_l_a_t_i_o_n _f_o_r _V_e_c_t_o_r_s

_D_e_s_c_r_i_p_t_i_o_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' function.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

     bin: a vector of integers, or a factor.

   nbins: the number of bins to be used.

_D_e_t_a_i_l_s:

     If `bin' is a factor, its internal integer representation 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_e_e _A_l_s_o:

     `factor', `table'.

_E_x_a_m_p_l_e_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]))

