Extract unique elements

Description

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

Usage

1
2
## 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

1
2
3
4
5
6
7
 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);
 

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