powered by
SpectraMatrix is a extended 'Spectra' class.
Constructor as.spectra.matrix creates a SpectraMatrix object.
as.spectra.matrix
as.spectra.matrix( spectra = matrix(0), wavelength = numeric(0), w.unit = character(0) )
Returns a SpectraDataframe.
A matrix
A numeric vector
A character string
smatrix <- as.spectra.matrix(matrix(1:10, 1), 1:10, "nm") str(smatrix)
Run the code above in your browser using DataLab