Two utility functions. One converts state names to the state abbreviations, and the second does the opposite.
abbr2state(abbr)
A vector of state abbreviation.
Returns a vector of the same length with the corresponding state names or abbreviations.
state2abbr, county, county_complete
state2abbr
county
county_complete
# NOT RUN { abbr2state("MN") # }
Run the code above in your browser using DataLab