Reverse a name assignment map (which are written NEWNAME=OLDNAME).

replyr_reverseMap(nmap)

Arguments

nmap

named list mapping with keys specifying new column names, and values as original column names.

Value

inverse map

See also

Examples

mp <- c(A='x', B='y') print(mp)
#> A B #> "x" "y"
replyr_reverseMap(mp)
#> $x #> [1] "A" #> #> $y #> [1] "B" #>