Defines functions as.hyperSpec

Documented in as.hyperSpec

as.hyperSpec <- function(object)
  if (!requireNamespace("hyperSpec", quietly = TRUE))
    stop("Library 'hyperSpec' is required to convert object to hyperSpec-class")

  spc <- new("hyperSpec", spc = spectra(object), wavelength = wavelength(object), data = attribute(object))

Try the hsdar package in your browser

Any scripts or data that you put into this service are public.

hsdar documentation built on May 30, 2017, 6:23 a.m.