fetch_codes | R Documentation |
Retrieve state and district codes
fetch_codes(regions = c("states", "state", "districts", "district"))
regions |
The region breakdown for the map, can be one of
( |
An data frame of codes of the desired regions
.
str(fetch_codes())
state_codes <- fetch_codes()
district_codes <- fetch_codes(regions = "districts")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.