set_country: Set country to retrieve data for

View source: R/setter_funcs.R

set_countryR Documentation

Set country to retrieve data for

Description

The country to retrieve GDL indicator data for.

Usage

set_country(session, country)

Arguments

session

A valid GDL session object to interface with.

country

An ISO3 country code.

Value

An amended GDL session object.

Examples

## Not run: 
# Create a session using your API token (provided by environment here)
session <- gdl_session(Sys.getenv('GDL_API_TOKEN'))
session <- set_country(session, 'IND')

## End(Not run)

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