Summary {spam}R Documentation

Summary functions

Description

Applies the summary functions to 'spam' objects

Usage

max(x, ..., na.rm = FALSE)
min(x, ..., na.rm = FALSE)
range(x, ..., na.rm = FALSE)
prod(x, ..., na.rm = FALSE)
sum(x, ..., na.rm = FALSE)
any(x, ..., na.rm = FALSE )
all(x, ..., na.rm = FALSE)

Arguments

x spam object.
... numeric arguments.
na.rm a logical indicating whether missing values should be removed, see details.

Details

The for this generic class typical na.rm argument has no weight here as NA/NaN/Inf are not meaningful (yet).

Value

All functions operate on the vector x@entries and return the result thereof.

Author(s)

Reinhard Furrer

Examples

smat <- diag.spam(rnorm(15))
range(smat)

[Package spam version 0.12 Index]