Spectra | R Documentation |
Constructor for the Spectra class. Creates a Spectra object from scratch.
Spectra(wl = numeric(), nir = matrix(), id = as.character(NA), units = "nm")
wl |
a numeric vector giving the wavelengths at with the spectra have been measured |
nir |
a |
id |
a vector giving the unique id of each sample in the collection |
units |
a character giving the unit in which the wavelengths values are expressed |
a new "Spectra"
object
Pierre Roudier pierre.roudier@gmail.com
spectra
, wl
,
Spectra-class
, SpectraDataFrame
wls <- 350:2500
id <- c("A", "B")
nir <- matrix(runif(2*length(wls)), nrow = 2)
s <- Spectra(wl = wls, nir = nir, id = id, units = "nm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.