attributes_speclib: Handling attributes of spectra

Description Usage Arguments Value Author(s) See Also Examples

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)


Search within the hsdar package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.