View source: R/fetch_regions.R
fetch_regions | R Documentation |
Returns a data frame containing ISO 3166-1 country codes and ISO 3166-2 subdivision codes for the specified administrative level.
fetch_regions(admin_lvl = 0)
admin_lvl |
[optional] (integer) Administrative level to retrieve:
|
A data frame containing region names, ISO 3166-2 codes, and the corresponding administrative levels.
# Example: Fetch ISO 3166-1 country codes
## Not run:
fetch_regions()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.