diff-hyperSpec-method: differences on hyperSpec spectra (S4 method)

Description Usage Arguments Details Value See Also Examples

Description

S4 method for the generic function diff() and the hyperSpec class.

Usage

1
2
## S4 method for signature 'hyperSpec'
diff(x, lag = 1, differences = 1)

Arguments

x

a numeric vector or matrix containing the values to be differenced.

lag

an integer indicating which lag to use.

differences

an integer indicating the order of the difference.

Details

All columns of x@data$spc are kept and spectra padded with NAs accordingly.

Value

a hyperSpec object.

See Also

diff

Examples

1
2
3
4
## Not run: 
plotspc(diff(chondro, 1, 1))

## End(Not run)

konradmayer/hyperSpec.utils documentation built on May 2, 2021, 4:17 a.m.