Learn R Programming

spray (version 1.0-26)

summary.spray: Summaries of spray objects

Description

A summary method for spray objects, and a print method for summaries.

Usage

# S3 method for spray
summary(object, ...)
# S3 method for summary.spray
print(x, ...)

Arguments

object,x

Object of class spray

...

Further arguments, passed to head()

Author

Robin K. S. Hankin

Details

A summary.spray object is summary of a spray object x: a list with first element being a summary() of the coefficients (which is a disord object), and the second being a spray object comprising a few selected index-coefficient pairs. The selection is done by head().

Examples

Run this code
a <- rspray()^2
a
summary(a)
summary(a,2)

options(polyform=TRUE)
summary(a^4,3)
options(polyform=FALSE) # restore default

Run the code above in your browser using DataLab