| fscale_spct {photobiology} | R Documentation |
These functions return a spectral object of the same class as the one supplied as argument but with the spectral data scaled.
fscale_spct(spct, range, col.names, f, target, ...)
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 fscale |
f |
function A summary function to be applied to |
... |
other arguments passed to f() |
a new object of the same class as spct.