SpectraMatrix-class | R Documentation |
SpectraMatrix is a extended 'Spectra' class.
Constructor as.spectra.matrix
creates a SpectraMatrix object.
as.spectra.matrix(
spectra = matrix(0),
wavelength = numeric(0),
w.unit = character(0)
)
spectra |
A matrix |
wavelength |
A numeric vector |
w.unit |
A character string |
sdf |
Returns a SpectraDataframe. |
smatrix <- as.spectra.matrix(matrix(1:10, 1), 1:10, "nm")
str(smatrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.