View source: R/convert.names.wl.R
convert.names.wl | R Documentation |
Turns wavelengths into variable's names
convert.names.wl(start = NULL, stop = NULL, step = 2)
start |
First wavelength of the spectra. |
stop |
Last wavelength of the spectra. |
step |
Distance between each recorded wavelength. |
Returns vector with syntactically valid names for each wavelength
data(beer)
X=beer[,2:ncol(beer)]
head(names(X))
names(X)=convert.names.wl(1100,2250,2)
head(names(X))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.