Learn R Programming

hsdar (version 0.5.1)

idSpeclib: Handling IDs of spectra

Description

Returning and setting ID of spectra in Speclib

Usage

idSpeclib(x) idSpeclib(x) <- value

Arguments

x
Object of class Speclib.
value
Character vector of the same length as nspectra(x), or NULL.

Value

For idSpeclib<-, the updated object. Otherwise a vector giving the ID of each spectrum in Speclib is returned.

See Also

Speclib

Examples

Run this code
data(spectral_data)

idSpeclib(spectral_data)

Run the code above in your browser using DataLab