summary is a generic function used to produce result summaries
of the results of various model fitting functions. The function
methods which depend on the
class of the first argument.
1 2 3 4 5 6 7 8 9 10 11 12 13
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, ...)
an object for which a summary is desired.
integer, indicating how many levels should be shown for
integer, used for number formatting with
additional arguments affecting the summary produced.
factors, the frequency of the first
maxsum - 1
most frequent levels is shown, and the less frequent levels are
"(Others)" (resulting in at most
summary.glm are examples
of particular methods which summarize the results produced by
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.
The default method returns an object of class
c("summaryDefault", "table") which has a specialized
factor method returns an
The matrix and data frame methods return a matrix of class
"table", obtained by applying
summary to each
column and collating the results.
Chambers, J. M. and Hastie, T. J. (1992) Statistical Models in S. Wadsworth & Brooks/Cole.
1 2 3 4 5 6 7
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.