NSpec.DB {visa}R Documentation

Example data in the Spectra/SpectraDatabase 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 to be used for storing vegetation traits, such as here the plant N content.

Usage

NSpec.DB

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.DB)
str(NSpec.DB)


[Package visa version 0.1.0 Index]