merge.generic_spct: Merge two generic_spct objects

Description Usage Arguments Note See Also

View source: R/spct.new.R

Description

Merge of two spct objects based on w.length.

Usage

1
2
## S3 method for class 'generic_spct'
merge(x, y, by = "w.length", ...)

Arguments

x

generic_spct (or derived) objects to be merged

y

generic_spct (or derived) objects to be merged

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()

Note

If the class of x and y is the same, it is preserved, but if it differs generic_spct is used for the returned value, except when x and y, are one each of classes reflector_spct and filter_spct in which case an object_spct is returned. In the current implementation only wavelengths values shared by x and y are preserved.

See Also

join


photobiology documentation built on June 25, 2017, 5:03 p.m.