gdl_regions {gdldata}R 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)

[Package gdldata version 0.1 Index]