primaryKey.IdMapBase {IdMappingAnalysis} | R Documentation

## Retrieves a primary key for a given IdMapBase object

### Description

Retrieves a primary key for a given IdMapBase object. The method can be used as object specific as well as static. In the latter case the method can accept a `data.frame` using IdMapBase$primaryKey(<data.frame>) signature returning the name of the <data.frame> first column.

### Usage

    ## S3 method for class 'IdMapBase'
    primaryKey(this, DF=NULL, ...)

### Arguments

`...` | Not used

### Value

A `character` string representing primary key for given IdMapBase object

### Author(s)

Alex Lisovich, Roger Day

### See Also

For more information see `IdMapBase`.

### Examples

     obj<-IdMapBase(examples$identDfList[[1]]);
     obj$primaryKey();

[Package IdMappingAnalysis version 1.28.0 Index]