as.spectra.dataframe | R Documentation |
Constructor as.spectra.dataframe
function creates a SpectraDataframe object, which is equivalent to the use of as.specdf.
as.spectra.dataframe(
spectra = matrix(0),
wavelength = numeric(0),
w.unit = character(0),
data = data.frame(0),
...
)
spectra |
A matrix |
wavelength |
A numeric vector |
w.unit |
A character string |
data |
A data.frame |
... |
Other options for similar format of variables |
sdf |
Returns a SpectraDataframe. |
sdf <- as.spectra.dataframe(matrix(1:10, 1), 1:10, "nm", data.frame(a = 1, b =2))
str(sdf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.