Learn R Programming

photobiology (version 0.10.6)

merge2object_spct: 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 filter_spct object and a reflector_spct object.

by

a vector of shared column names in x and y to merge on; by defaults to w.length.

...

other arguments passed to dplyr::inner_join()

w.length.out

numeric vector of wavelengths to be used for the returned object (nm).

Tfr.type.out

character string indicating whether transmittance values in the returned object should be expressed as "total" or "internal". This applies only to the case when an object_spct is returned.

Value

An object_spct is returned as the result of merging a filter_spct and a reflector_spct object.

See Also

join