summary.default
Default Summary Method
Description
Prepares a summary for data without a class (or for classes of data
with no special summary method).
Usage
summary.default(object, ..., digits = max(3L, getOption("digits") - 3L))
Arguments
object |
an object without a class.
|
... |
arguments other than object and digits are ignored.
|
digits |
the results for numeric data are rounded to digit significant
digits.
|
Details
The returned value is useful only for printing.
Use functions like quantile or mean to get numerical summaries
of data for use in other functions.
Value
- if object is numeric, returns the quartiles and mean of
the data and the number of missing values, if there are any.
- If object is a list, returns the name, length, class, and
mode of each component.
- Otherwise, returns the length, class and mode.
In any case, the returned value has class attribute
c("summaryDefault", "table").
See Also
Examples
summary(Sdatasets::state.x77[,"Illiteracy"])
# Produces the following:
# Min. 1st Qu. Median Mean 3rd Qu. Max.
# 0.5 0.625 0.95 1.17 1.575 2.8