View source: R/code_us_states.R
code_us_states | R Documentation |
Name US states and territories from alphabetical index
code_us_states(state_code)
state_code |
an integer representing US state/territory in alphabetical order |
a character label for state or territory
df <- tibble(state = sample(1:56, 200, replace = TRUE)) %>% mutate(coded_state = code_us_states(state))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.