reverseEnv {makePMG}R Documentation

Reverse Environments

Description

reverseEnv reverses the key and value pairs of an environment so the original values become the new keys and the original keys become the new values. Any original values of NA will be replaced by "NotMapped" as the new key.

Usage

reverseEnv(lib, envir)

Arguments

lib character string of the library's name where the original environment is stored
envir the environment to be reversed

Value

a new environment will be returned with key and values switched from the original environment.

Author(s)

Elizabeth Whalen

See Also

revList, uniqueVec

Examples


# works but very slow
# PMID2AFFY<-reverseEnv("hgu95a",hgu95aPMID)


[Package Contents]