Learn R Programming

hyperSpec (version 0.95)

Summary: Math Functions for hyperSpec Objects

Description

The functions

all, any,

sum, prod,

min, max, and

range

for hyperSpec objects.

Usage

## S3 method for class 'hyperSpec':
all(x, \dots, na.rm = FALSE)
## S3 method for class 'hyperSpec':
any(x, \dots, na.rm = FALSE)
## S3 method for class 'hyperSpec':
sum(x, \dots, na.rm = FALSE)
## S3 method for class 'hyperSpec':
prod(x, \dots, na.rm = FALSE)
## S3 method for class 'hyperSpec':
min(x, \dots, na.rm = FALSE)
## S3 method for class 'hyperSpec':
max(x, \dots, na.rm = FALSE)
## S3 method for class 'hyperSpec':
range(x, \dots, na.rm = FALSE)

Arguments

x
the hyperSpec object
...
further objects
na.rm
logical indicating whether missing values should be removed

Value

  • a numeric

Details

All these functions work on the spectra matrix.

See Also

S4groupGeneric for group generic methods.

Summary for the base summary functions. Arith for arithmetic operators, Comparison for comparison operators, and Math for group generic functions working on hyperSpec objects.

Examples

Run this code
range (flu)

Run the code above in your browser using DataLab