summary                 package:base                 R Documentation

_O_b_j_e_c_t _S_u_m_m_a_r_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     `summary' is a generic function used to produce result summaries
     of the results of various model fitting functions.  The function
     invokes particular `methods' which depend on the `class' of the
     first argument.

_U_s_a_g_e:

     summary(object, ...)

     summary.default   (object, ..., digits = max(3, getOption("digits")-3))
     summary.data.frame(object, maxsum = 7,
                        digits = max(3, getOption("digits")-3), ...)
     summary.factor    (object, maxsum = 100, ...)
     summary.matrix    (object, ...)

_A_r_g_u_m_e_n_t_s:

  object: an object for which a summary is desired.

  maxsum: integer, indicating how many levels should be shown for
          `factor's.

  digits: integer, used for number formatting with `signif()' (for
          `summary.default') or `format()' (for `summary.data.frame').

     ...: additional arguments affecting the summary produced.

_D_e_t_a_i_l_s:

     For `factor's, the frequency of the first `maxsum - 1' most
     frequent levels is shown, where the less frequent levels are
     summarized in `"(Others)"' (resulting in `maxsum' frequencies).

     The functions `summary.lm' and `summary.glm' are examples of
     particular methods which summarise the results produced by `lm'
     and `glm'.

_V_a_l_u_e:

     The form of the value returned by `summary' depends on the class
     of its argument.  See the documentation of the particular methods
     for details of what is produced by that method.

_S_e_e _A_l_s_o:

     `anova',`summary.glm',`summary.lm'.

_E_x_a_m_p_l_e_s:

     data(attenu)
     summary(attenu, digits = 4) #-> summary.data.frame(..), default precision
     summary(attenu $ station, maxsum = 20) #-> summary.factor(..)

