revList {makePMG} | R Documentation |
revList creates a new list where the names of the new list are the values in the original list and the values in new list are the names in the original list. Thus, revList creates a new list that is the reverse mapping of the original list, oList. For values that were originally NA, the new key is "NotMapped".
revList(V, L)
V |
the names of the new list (the values from the original list) |
L |
the original list to be reversed |
A list of lists that has the key and value pairs reversed from the original list parameter.
Elizabeth Whalen