reverseEnv {makePMG} | R Documentation |
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.
reverseEnv(lib, envir)
lib |
character string of the library's name where the original environment is stored |
envir |
the environment to be reversed |
a new environment will be returned with key and values switched from the original environment.
Elizabeth Whalen
# works but very slow # PMID2AFFY<-reverseEnv("hgu95a",hgu95aPMID)