Merge two generic_spct objects

Description

Relatively quick 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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.