bands: Get spectra band labels

View source: R/getters_and_setters.R

bandsR Documentation

Get spectra band labels

Description

bands returns a vector of band labels from spectra

Usage

bands(x, min = NULL, max = NULL, return_num = TRUE)

## S3 method for class 'spectra'
bands(x, min = NULL, max = NULL, return_num = TRUE)

Arguments

x

spectra object

min

= NULL

max

= NULL

return_num

boolean. return vector of numeric values (default). otherwise, a vector of strings is returned

Value

vector of bands. numeric if 'return_num' = TRUE (default).

Methods (by class)

  • bands(spectra): Get spectra band labels

Author(s)

Jose Eduardo Meireles

Examples

library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
head(bands(spec))

spectrolab documentation built on Feb. 16, 2023, 10:27 p.m.