merge2object_spct {photobiology} | R Documentation |
Merge into object_spct
Description
Merge a filter_spct
with a reflector_spct
returning an
object_spct
object, even if wavelength values are mismatched.
Usage
merge2object_spct(
x,
y,
by = "w.length",
...,
w.length.out = x[["w.length"]],
Tfr.type.out = "total"
)
Arguments
x , y |
a |
by |
a vector of shared column names in |
... |
other arguments passed to |
w.length.out |
numeric vector of wavelengths to be used for the returned
object ( |
Tfr.type.out |
character string indicating whether transmittance values
in the returned object should be expressed as |
Value
An object_spct
is returned as the result of merging a
filter_spct
and a reflector_spct
object.
Note
If a numeric vector is supplied as argument for w.length.out
,
the two spectra are interpolated to the new wavelength values before
merging. The default argument for w.length.out
is
x[["w.length"]]
.