fshift_spct: fshift a spectrum

Description Usage Arguments Details Value

View source: R/spct.fshift.r

Description

This function returns a spectral object of the same class as the one supplied as argument but with the spectral data expressed on a zero-shifted scale.

Usage

1
fshift_spct(spct, range, col.names, f, ...)

Arguments

spct

generic_spct The spectrum to be normalized

range

an R object on which range() returns a vector of length 2, with min and max wavelengths (nm)

col.names

character The name of the variable to shift with respect to zero.

f

function A summary function to be applied to spct

...

other arguments passed to f()

Details

This private function is used internally to implement the hshift() methods that are exported.

Value

a new object of the same class as spct.


photobiology documentation built on Aug. 28, 2020, 1:11 a.m.