Learn R Programming

spectrolab (version 0.0.18)

bands<-: Set band labels

Description

bands sets band labels of lhs to the rhs values

Usage

bands(x) <- value

Value

nothing. called for its side effect.

Arguments

x

spectra object (lhs)

value

rhs

Author

Jose Eduardo Meireles

Examples

Run this code
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
bands(spec) = bands(spec) / 1000

Run the code above in your browser using DataLab