Two utility functions. One converts state names to the state abbreviations,
and the second does the opposite.
Arguments
- abbr
A vector of state abbreviation.
Value
Returns a vector of the same length with the corresponding state
names or abbreviations.
Examples
abbr2state("MN")
#> [1] "Minnesota"