View source: R/getters_and_setters.R
bands | R Documentation |
bands
returns a vector of band labels from spectra
bands(x, min = NULL, max = NULL, return_num = TRUE) ## S3 method for class 'spectra' bands(x, min = NULL, max = NULL, return_num = TRUE)
x |
spectra object |
min |
= NULL |
max |
= NULL |
return_num |
boolean. return vector of numeric values (default). otherwise, a vector of strings is returned |
vector of bands. numeric if 'return_num' = TRUE (default).
bands(spectra)
: Get spectra band labels
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) head(bands(spec))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.