Last chance! 50% off unlimited learning
Sale ends in
Function to set by reference the multiple.wl
attribute of an existing
generic_spct
object or an object of a class derived from
generic_spct
.
setMultipleWl(x, multiple.wl = NULL)multiple_wl(x) <- value
x
, modified in place by reference. If x is not a
generic_spct
or an object of a class derived from
generic_spct
, x
is not modified.
a generic_spct object
numeric >= 1 If multiple.wl = NULL
, the
default, the value is guessed.
These methods set the attribute multiple.wl
and if the
argument of multiple.wl
or value
is NULL
, they call
findMultipleWl
to obtain a guess. Pathological cases where
multiple spectra in long form do not share any wavelength value underestimate
the number of spectra, and require an explicit numeric argument. Calling
these methods is very rarely needed in user code.
Other multiple.wl attribute functions:
getMultipleWl()
my.spct <- sun.spct
setMultipleWl(my.spct) # default is to search x, here my.spct
getMultipleWl(my.spct)
multiple_wl(my.spct) <- 1L # must be a valid value or NULL!
multiple_wl(my.spct)
multiple_wl(my.spct) <- NULL # must be a valid value or NULL!
multiple_wl(my.spct)
Run the code above in your browser using DataLab