ntable                 package:pscl                 R Documentation

_N_i_c_e_l_y _f_o_r_m_a_t_t_e_d _t_a_b_l_e_s

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

     Nicely formatted tables, with row or column marginals etc

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

     ntable(x,y=NULL,
            percent=1,digits=2,
            row=FALSE,col=FALSE)

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

       x: vector or 'factor'

       y: vector of 'factor'

 percent: integer. 1 for row percentages (default), 2 for column
          percentages

  digits: digits to print after decimal place (default is 2)

     row: logical. if 'TRUE', print row marginals

     col: logical. if 'TRUE', print column marginals

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

     A wrapper function to 'prop.table' that produces prettier looking
     results.

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

     nothing returned; the function prints the table and exits
     silently.

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

     Jim Fearon <jfearon@stanford.edu>

_S_e_e _A_l_s_o:

     'prop.table', 'table'

_E_x_a_m_p_l_e_s:

     data(bioChemists)
     attach(bioChemists)
     ntable(fem)
     ntable(fem,mar,row=TRUE)
     ntable(fem,mar,per=2,col=TRUE)
     ntable(fem,mar,per=2,row=TRUE,col=TRUE)

