tbl2tex                 package:pgam                 R Documentation

_L_a_T_e_X _t_a_b_l_e _e_x_p_o_r_t_e_r

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

     Export a data frame to a fancy LaTeX table environment.

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

     tbl2tex(tbl, label = "tbl:label(must_be_changed!)", caption = "Table generated with tbl2tex.", centered = TRUE, alignment = "center", digits = getOption("digits"), hline = TRUE, vline = TRUE, file = "", topleftcell = "   ")

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

     tbl: object of type data frame or matrix

   label: label for LaTeX cross reference

 caption: caption for LaTeX tabular environment

centered: logical. 'TRUE' for centered cells

alignment: alignment of the object on the page

  digits: decimal digits after decimal point

   hline: logical. 'TRUE' for horizontal borders

   vline: logical. 'TRUE' for vertical borders

    file: filename for outputting. If none is provided, LaTeX code is
          routed through the console

topleftcell: text for the top-left cell of the table

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

     This is a utility function intended to ease convertion of _R_
     objects to LaTeX format. It only exports data frame or data matrix
     nonetheless.

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

     LaTeX code is routed through file or console for copying and
     pasting.

_N_o_t_e:

     For now, it handles only numerical data.

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

     Washington Leite Junger wjunger@ims.uerj.br

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

     'pgam'

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

     library(pgam)
     data(aihrio)
     m <- aihrio[1:10,4:10]
     tbl2tex(m,label="tbl:r_example",caption="R example of tbl2tex",digits=4)

