HSAURtable               package:HSAUR               R Documentation

_P_r_o_d_u_c_e _L_a_T_e_X _T_a_b_l_e_s

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

     Generate 'longtable' LaTeX environments.

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

     HSAURtable(object, ...)
     ## S3 method for class 'table':
     HSAURtable(object, xname = deparse(substitute(object)), pkg = NULL, 
         ...)
     ## S3 method for class 'data.frame':
     HSAURtable(object, xname = deparse(substitute(object)), pkg = NULL,
         nrows = NULL,  ...)
     ## S3 method for class 'tabtab':
     toLatex(object, caption = NULL, label = NULL, 
         topcaption = TRUE, index = TRUE, ...)
     ## S3 method for class 'dftab':
     toLatex(object, pcol = 1, caption = NULL, 
         label = NULL, rownames = FALSE, topcaption = TRUE, index = TRUE, 
         ...)

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

  object: an object of 'table' or 'data.frame'. 

   xname: the name of the object. 

     pkg: the package 'object' comes from, optionally. 

   nrows: the number of rows actually printed for a 'data.frame'.

 caption: the (optional) caption of the table without label. 

   label: the (optional) label to be defined for this table. 

    pcol: the number of parallel columns. 

rownames: logical, should the rownames be printed in the first row
          without column name? 

topcaption: logical, should the captions be placed on top (default)  of
          the table?

   index: logical, should an index entry be generated?

     ...: additional arguments, currently ignored. 

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

     Based on the data in 'object', an object from which a Latex table 
     (in a 'longtable' environment) may be  constructed (via 
     'toLatex') is generated.

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

     An object of class 'tabtab' or 'dftab' for which 'toLatex' methods
     are available.

     'toLatex' produces objects of class 'Latex', a character vector,
     essentially.

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

       data("rearrests", package = "HSAUR")
       toLatex(HSAURtable(rearrests), 
               caption = "Rearrests of juvenile felons.", 
               label = "rearrests_tab")

