Handling attributes of spectra

Description

Returning and setting attributes of spectra in Speclib or Nri.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S4 method for signature 'Speclib'
attribute(object)

## S4 replacement method for signature 'Speclib,data.frame'
attribute(object) <- value

## S4 replacement method for signature 'Speclib,matrix'
attribute(object) <- value

## S4 method for signature 'Nri'
attribute(object)

## S4 replacement method for signature 'Nri,data.frame'
attribute(object) <- value

## S4 replacement method for signature 'Nri,matrix'
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.

Author(s)

Lukas Lehnert

See Also

Speclib, Nri

Examples

1
2
3
4
data(spectral_data)

## Returning attributes
attribute(spectral_data)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.