View source: R/speclib_bandnames.R
bandnames | R Documentation |
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
Speclib
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.