value<- {spectrolab} | R Documentation |
Set spectra value
Description
value<-
Assigns the rhs to the value of the lhs spectra obj
Usage
value(x) <- value
Arguments
x |
spectra object |
value |
value to be assigned to the lhs |
Value
nothing. called for its side effect
Author(s)
Jose Eduardo Meireles
Examples
library(spectrolab)
spec = as_spectra(spec_matrix_example, name_idx = 1)
# scale all refletance values by 2
value(spec) = value(spec) * 2
[Package spectrolab version 0.0.19 Index]