"wavelength"(x) wavelength(x) <- value"numWavelengths"(x)"is.regular"(x) step.wl(x)
x. The wavelengths must be increasing. The unit must be nanometers.
wavelengthreturns a numeric vector with the wavelength of the spectra, in nanometers.
numWavelengths(x)is the same as
length(wavelength(x))but much more efficient.
is.regularreturns TRUE or FALSE, depending on whether the step between consecutive wavelengths is a constant. A truncation error of 1.e-6 nm is tolerated here. For example, the X-Rite ColorMunki spectrometer in hi-res mode has a step of 3.33333nm, and it is considered regular.
step.wlreturns the mean step in nm, whether the wavelengths are regular or not.
data.frameand the wavelength vector is stored in the first column of
x. Otherwise, the wavelength vector is stored as