code_info | R Documentation |
Retrieve states or districts using codes
code_info(code11, sortAndRemoveDuplicates = FALSE)
## S3 method for class 'numeric'
code_info(code11, sortAndRemoveDuplicates = FALSE)
## S3 method for class 'character'
code_info(code11, sortAndRemoveDuplicates = FALSE)
code11 |
A one to three digit, either |
sortAndRemoveDuplicates |
Whether or not to sort the output and remove
duplicates. By default, the output will be returned in the order of
the values provided to the |
A data frame with the states or counties and the associated codes.
If 'codes' is omitted, the data frame containing all available states is returned.
[codes()]
code_info(2)
code_info("02")
code_info(c("02", "03", "04"))
code_info(19335)
code_info(c("19335", "19337"), sortAndRemoveDuplicates = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.