IdMap$swapKeys {IdMappingAnalysis} | R Documentation

## Swap the primary and secondary key columns

### Description

Swap the primary and secondary key columns.

### Usage

    ## Static method (use this):
    ## IdMap$swapKeys(idMap, verbose=FALSE, ...)

    ## Don't use the below:
    ## S3 method for class 'IdMap'
    swapKeys(static, idMap, verbose=FALSE, ...)

### Arguments

`idMap` | The IdMap object or a list of IdMap objects which keys to be swapped.
`verbose` | If `TRUE` enables diagnostic messages. Default is `FALSE`.
`...` | Not used.

### Value

IdMap object or list of IdMap objects with swapped keys.

### Author(s)

Alex Lisovich, Roger Day

### See Also

For more information see `IdMap`.

### Examples

    uniprot2Affy<-IdMap(examples$identDfList[[1]]);
    uniprot2Affy[1:10,];

    affy2Uniprot<-IdMap$swapKeys(uniprot2Affy);
    affy2Uniprot[1:10,];

[Package IdMappingAnalysis version 1.26.0 Index]