Spectra: Constructor for the Spectra class.

Description Usage Arguments Value Author(s) See Also Examples

Description

Constructor for the Spectra class. Creates a Spectra object from scratch.

Usage

1

Arguments

wl

a numeric vector giving the wavelengths at with the spectra have been measured

nir

a "matrix" or a "data.frame" object giving the spectra values for each sample

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

Value

a new "Spectra" object

Author(s)

Pierre Roudier pierre.roudier@gmail.com

See Also

spectra, wl, Spectra-class, SpectraDataFrame

Examples

1
2
3
4
  my.wl <- 350:2500
  my.id <- c("A", "B")
  my.nir <- matrix(runif(2*length(my.wl)), nrow=2)
  my.spec <- Spectra(wl = my.wl, nir = my.nir, id = my.id)

pierreroudier/specstore documentation built on May 25, 2019, 6:09 a.m.