set_countries {gdldata}R Documentation

Set countries to retrieve data for

Description

The countries to retrieve GDL indicator data for.

Usage

set_countries(session, countries)

Arguments

session

A valid GDL session object to interface with.

countries

A vector of ISO3 country codes.

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'))
# Customize parameters
session <- set_dataset(session, 'shdi')
session <- set_countries(session, c('BEL', 'LUX', 'NLD'))

## End(Not run)

[Package gdldata version 0.1 Index]