Handling names of bands
Returning and setting names of bands in Speclib
bandnames(x) bandnames(x) <- value
x |
Object of class |
value |
Character vector of the same length as |
For bandnames<-
, the updated object. Otherwise a vector giving the name of each band in Speclib
is returned.
Bandnames are not mandatory in Speclibs
. If not set, the default names are in the form V
+index of bands.
Lukas Lehnert
data(spectral_data) ## Return band names bandnames(spectral_data) ## Change band names bandnames(spectral_data) <- paste("Band", wavelength(spectral_data), sep = "_") ## Return new band names bandnames(spectral_data)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.