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.
summary(object, …)<p></p><p># S3 method for default
summary(object, …, digits, quantile.type = 7)
# S3 method for data.frame
summary(object, maxsum = 7,
digits = max(3, getOption("digits")-3), …)</p><p># S3 method for factor
summary(object, maxsum = 100, …)</p><p># S3 method for matrix
summary(object, …)</p><p># S3 method for summaryDefault
format(x, digits = max(3L, getOption("digits") - 3L), …)
# S3 method for summaryDefault
print(x, digits = max(3L, getOption("digits") - 3L), …)</p>
| Parameter | Description |
|---|---|
object |
an object for which a summary is desired. |
x |
a result of the default method of summary(). |
maxsum |
integer, indicating how many levels should be shown for factors. |
digits |
integer, used for number formatting with signif() (for summary.default) or format() (for summary.data.frame). In summary.default, if not specified (i.e., missing(.)), signif() will not be called anymore (since R >= 3.4.0, where the default has been changed to only round in the print and format methods). |
quantile.type |
integer code used in quantile(*, type=quantile.type) for the default method. |
… |
additional arguments affecting the summary produced. |
# NOT RUN {
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))
# }