NSpec.Lib: Example data in the Spectra/SpectraLibrary format.

NSpec.LibR Documentation

Example data in the Spectra/SpectraLibrary format.

Description

A S4 data structure containing the plant spectra and nitorgen (N) content. Spectra is organized as a matrix and is stored as a slot, named 'spectra'. The corresponding N content is stored in the slot 'data', which is a data.frame used for storing supporting data and plant/vegetation traits, such as here the plant N content.

Usage

NSpec.Lib

Format

A Spectra object with 19 rows and 4 slots (spectra, wavelength, w.unit, data).

spectra

A matrix of plant spectral data

wavelength

A vector of wavelength for the 'spectra' data

w.unit

A character string of wavelength unit (default "nm")

data

A data.frame of vegetation traits, here plant nitrogen content

...{currently not used}

Examples

library(visa)
data(NSpec.Lib)
str(NSpec.Lib)


visa documentation built on April 4, 2025, 5:40 a.m.