View source: R/reference_funcs.R
gdl_regions | R Documentation |
Returns a list of regions available for a particular country.
gdl_regions(session, country)
session |
A valid GDL session object to interface with. |
country |
An ISO3 country code. |
A data frame containing a list of regions for the country.
## Not run:
# Create a session using your API token (provided by environment here)
session <- gdl_session(Sys.getenv('GDL_API_TOKEN'))
# Request list of regions for India
regions <- gdl_regions(session, 'IND')
head(regions, n=10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.