spectrolab (version 0.0.18)

value<-: Set spectra value

Description

value Assigns the rhs to the value of the lhs spectra obj

Usage

value(x) <- value

Value

nothing. called for its side effect

Arguments

x

spectra object

value

value to be assigned to the lhs

Author

Jose Eduardo Meireles

Examples

Run this code
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
# scale all refletance values by 2
value(spec) = value(spec) * 2

Run the code above in your browser using DataLab