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, ...)

     ## Default S3 method:
     summary(object, ..., digits = max(3, getOption("digits")-3))
     ## S3 method for class 'data.frame':
     summary(object, maxsum = 7,
            digits = max(3, getOption("digits")-3), ...)

     ## S3 method for class 'factor':
     summary(object, maxsum = 100, ...)

     ## S3 method for class 'matrix':
     summary(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.

_R_e_f_e_r_e_n_c_e_s:

     Chambers, J. M. and Hastie, T. J. (1992) _Statistical Models in
     S_. Wadsworth & Brooks/Cole.

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

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

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

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

     lst <- unclass(attenu$station) > 20 # logical with NAs
     ## summary.default() for logicals -- different from *.factor:
     summary(lst)
     summary(as.factor(lst))

