Learn R Programming

hsdar (version 0.4.1)

attribute: Handling attributes of spectra

Description

Returning and setting attributes of spectra in Speclib or Nri.

Usage

## S3 method for class 'Speclib':
attribute(object)

## S3 method for class 'Speclib,data.frame': attribute(object) <- value

## S3 method for class 'Speclib,matrix': attribute(object) <- value

## S3 method for class 'Nri': attribute(object)

## S3 method for class 'Nri,data.frame': attribute(object) <- value

## S3 method for class '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.

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