| Spectra-class | R Documentation |
Constructor as.spectra creates a Spectra object.
Constructor as.spectra.library creates a SpectraLibrary object.
as.spectra(
spectra = matrix(0),
wavelength = numeric(0),
w.unit = "nm",
data = data.frame(),
...
)
as.spectra.library(
spectra = matrix(0),
wavelength = numeric(0),
w.unit = "nm",
data = data.frame(),
...
)
spectra |
A matrix |
wavelength |
A numeric vector |
w.unit |
A character string |
data |
A data.frame |
... |
Other parameters |
spectraA matrix
wavelengthA numeric vector
w.unitA character string
dataA data.frame
s <- as.spectra(matrix(1:100, 4), 1:25, "nm", data.frame(x = letters[1:4]))
str(s)
s <- as.spectra.library(matrix(1:100, 4), 1:25, "nm", data.frame(x = letters[1:4]))
str(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.