convert.names.wl {windows.pls} | R Documentation |
Turns wavelengths into variable's names
Description
Turns wavelengths into variable's names
Usage
convert.names.wl(start = NULL, stop = NULL, step = 2)
Arguments
start |
First wavelength of the spectra. |
stop |
Last wavelength of the spectra. |
step |
Distance between each recorded wavelength. |
Value
Returns vector with syntactically valid names for each wavelength
Examples
data(beer)
X=beer[,2:ncol(beer)]
head(names(X))
names(X)=convert.names.wl(1100,2250,2)
head(names(X))
[Package windows.pls version 0.1.0 Index]