Description Usage Arguments Value Author(s) See Also Examples
Two utility functions. One converts state names to the state abbreviations, and the second does the opposite.
1 2 3 | abbr2state(abbr)
state2abbr(state)
|
state |
A vector of state name, where there is a little fuzzy matching. |
abbr |
A vector of state abbreviation. |
Returns a vector of the same length with the corresponding state names or abbreviations.
David Diez
1 2 3 4 5 | state2abbr("Minnesota")
abbr2state("MN")
#_____ 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.