Learn R Programming

IdMappingAnalysis (version 1.16.0)

UniquePairs$swapKeys: Swap the primary and secondary key columns

Description

Swap the primary and secondary key columns.

Usage

## Static method (use this): ## UniquePairs$swapKeys(uniquePairs, ...)
## Don't use the below: "swapKeys"(static, uniquePairs, ...)

Arguments

uniquePairs
The UniquePairs object or a list of UniquePairs objects which keys to be swapped.
...
Not used.

Value

Examples

Run this code
 pairs<-UniquePairs$create(examples$identDfList[[1]]);
 pairs[1:10,];
 swapped_pairs<-UniquePairs$swapKeys(pairs);
 swapped_pairs[1:10,];
 

Run the code above in your browser using DataLab