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 = getOption("digits"), ...)
     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(..)
     summary(attenu $ station, maxsum = 20) #-> summary.factor(..)

