print.data.frame            package:base            R Documentation

_P_r_i_n_t_i_n_g _D_a_t_a _F_r_a_m_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Print a data frame.

_U_s_a_g_e:

     ## S3 method for class 'data.frame':
     print(x, ..., digits = NULL,
           quote = FALSE, right = TRUE, row.names = TRUE)

_A_r_g_u_m_e_n_t_s:

       x: object of class 'data.frame'.

     ...: optional arguments to 'print' or 'plot' methods.

  digits: the minimum number of significant digits to be used: see
          'print.default'.

   quote: logical, indicating whether or not entries should be printed
          with surrounding quotes.

   right: logical, indicating whether or not strings should be
          right-aligned.  The default is right-alignment.

row.names: logical (or character vector), indicating whether (or what)
          row names should be printed.

_D_e_t_a_i_l_s:

     This calls 'format' which formats the data frame column-by-column,
     then converts to a character matrix and dispatches to the 'print'
     method for matrices.

     When 'quote = TRUE' only the entries are quoted not the row names
     nor the column names.

_S_e_e _A_l_s_o:

     'data.frame'.

_E_x_a_m_p_l_e_s:

     (dd <- data.frame(x=1:8, f=gl(2,4), ch=I(letters[1:8])))
          # print() with defaults
     print(dd, quote = TRUE, row.names = FALSE)
          # suppresses row.names and quotes all entries

