Learn R Programming

hsdar (version 0.5.1)

attribute: Handling attributes of spectra

Description

Returning and setting attributes of spectra in Speclib or Nri.

Usage

"attribute"(object)
"attribute"(object) <- value
"attribute"(object) <- value
"attribute"(object)
"attribute"(object) <- value
"attribute"(object) <- value

Arguments

object
Object of class Speclib or Nri.
value
Data frame with nrow(value) == nspectra(object), or NULL.

Value

For attribute<-, the updated object. attribute returns a data frame with attribute data.

See Also

Speclib, Nri

Examples

Run this code
data(spectral_data)

## Returning attributes
attribute(spectral_data)

Run the code above in your browser using DataLab