colPercents              package:Rcmdr              R Documentation

_R_o_w _a_n_d _C_o_l_u_m_n _P_e_r_c_e_n_t_a_g_e _T_a_b_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Percentage a matrix or higher-dimensional array of frequency
     counts by rows or columns.

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

     colPercents(tab, digits=1)
     rowPercents(tab, digits=1)

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

     tab: a matrix or higher-dimensional array of frequency counts.

  digits: number of places to the right of the decimal place for
          percentages.

_V_a_l_u_e:

     Returns an array of the same size and shape as 'tab' percentaged
     by rows or columns, plus rows or columns of totals and counts.

_A_u_t_h_o_r(_s):

     John Fox jfox@mcmaster.ca

