deduplicatePairs function

Deduplicate pairs of IDs in a data frame