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(options()$digits - 3, 3)) 

REQUIRED ARGUMENTS:

object
A S-PLUS object without a class.

OPTIONAL ARGUMENTS:

...
Arguments other than object and digits are ignored.
digits
The results for numeric data will be rounded to digit significant digits.

VALUE:

if object is numeric, the quartiles and mean of the data, and the number of missing values if there are any. If object is a list, summary returns the name, length, class, and mode of each component. Otherwise, the length and mode are given.

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.
summary.default treats a matrix as one dataset, it does not summarize each column.

SEE ALSO:

, , .

EXAMPLES:

summary(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