Skip to contents

Returns a list of countries available in the current dataset.

Usage

gdl_countries(session)

Arguments

session

A valid GDL session object to interface with.

Examples

# Create a session using your API token (provided by environment here)
session <- gdl_session(Sys.getenv('GDL_API_TOKEN'))
# Request list of countries
countries <- gdl_countries(session)
head(countries, n=10)
#>    id_country isocode3            name
#> 1           1      AFG     Afghanistan
#> 2           3      ALB         Albania
#> 3          33      DZA         Algeria
#> 4           2      AGO          Angola
#> 5           4      ARG Argentina urban
#> 6           5      ARM         Armenia
#> 7           6      AZE      Azerbaijan
#> 8          10      BGD      Bangladesh
#> 9          16      BRB        Barbados
#> 10         12      BLR         Belarus