gdl_regions: Get region list

View source: R/reference_funcs.R

gdl_regionsR Documentation

Get region list

Description

Returns a list of regions available for a particular country.

Usage

gdl_regions(session, country)

Arguments

session

A valid GDL session object to interface with.

country

An ISO3 country code.

Value

A data frame containing a list of regions for the country.

Examples

## 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)

gdldata documentation built on Sept. 21, 2023, 1:07 a.m.