unique.UniquePairs {IdMappingAnalysis} | R Documentation

## Extract unique elements

### Description

Removes duplicate ID pairs from a given UniquePairs object so the resuting UniquePairs object contains only unique ID pairs

### Usage

    ## S3 method for class 'UniquePairs'
    unique(x, incomparables=FALSE, verbose=FALSE, ...)

### Arguments

\ itemincomparablesNot used (defined for compatibility with generic).

`verbose` | if `TRUE` enables diagnostic messages. Default is `FALSE`.
`...` | Not used.

### Value

UniquePairs object with dublicate ID pairs removed.

### Author(s)

Alex Lisovich, Roger Day

### Examples

     pairs1<-UniquePairs$create(examples$identDfList[[1]]);
     pairs2<-UniquePairs$create(examples$identDfList[[2]]);
     dup_pairs<-UniquePairs(rbind(as.data.frame(pairs1),as.data.frame(pairs2)));
     dim(dup_pairs);
     unique_pairs<-dup_pairs$unique();
     dim(unique_pairs);

[Package IdMappingAnalysis version 1.26.0 Index]