powered by
Two utility functions. One converts state names to the state abbreviations, and the second does the opposite.
abbr2state(abbr)state2abbr(state)
state2abbr(state)
A vector of state name, where there is a little fuzzy matching.
A vector of state abbreviation.
Returns a vector of the same length with the corresponding state names or abbreviations.
county, countyComplete
county
countyComplete
# NOT RUN { state2abbr("Minnesota") abbr2state("MN") #_____ Some Spelling/Capitalization Errors Okay _____# state2abbr("mINnesta") # }
Run the code above in your browser using DataLab