Look up state abbreviations by state names (including District of Columbia
and Puerto Rico); this function is based on
grep(), and hence allows for
name_to_abbr( name, ignore.case = FALSE, perl = FALSE, fixed = FALSE, ties_method = c("first", "all") )
Vector of state names to look up.
Arguments to pass to
If "first", then only the first match for each name is returned. If "all", then all matches for each name are returned.
A vector of state abbreviations if
ties_method equals "first", and
a list of state abbreviations otherwise.
name_to_abbr("Penn") name_to_abbr(c("Penn", "New"), ties_method = "all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.