revList {makePMG}R Documentation

Reverses a List of Lists

Description

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".

Usage

revList(V, L)

Arguments

V the names of the new list (the values from the original list)
L the original list to be reversed

Value

A list of lists that has the key and value pairs reversed from the original list parameter.

Author(s)

Elizabeth Whalen

See Also

reverseEnv, uniqueVec

Examples



[Package Contents]