Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


spam (version 0.11)

Summary: 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.

Value

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

Details

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

Examples

Run this code
smat <- diag.spam(rnorm(15))
range(smat)

Run the code above in your browser using DataLab