The joinSpectraData(x, y, by.x, by.y) function now checks for duplicates in the x and y keys.
If there's duplicates in the Spectra key (i.e. in x[[by.x]]), then an error is thrown. Indeed, this key should be unique and the user would need to sort this out it it wasn't.
If there's duplicates in the y key (i.e. in y[[by.y]]), then a warning is thrown, and the last occurrences of the duplicated entries are used (as as result of using match()). The documentation provides guidance how to manage this.
The
joinSpectraData(x, y, by.x, by.y)
function now checks for duplicates in the x and y keys.Spectra
key (i.e. inx[[by.x]]
), then an error is thrown. Indeed, this key should be unique and the user would need to sort this out it it wasn't.y
key (i.e. iny[[by.y]]
), then a warning is thrown, and the last occurrences of the duplicated entries are used (as as result of usingmatch()
). The documentation provides guidance how to manage this.