state2abbr | R Documentation |
Two utility functions. One converts state names to the state abbreviations, and the second does the opposite.
state2abbr(state)
state |
A vector of state name, where there is a little fuzzy matching. |
Returns a vector of the same length with the corresponding state names or abbreviations.
David Diez
abbr2state
, county
, county_complete
state2abbr("Minnesota")
# Some spelling/capitalization errors okay
state2abbr("mINnesta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.