Skip to contents

Returns a list of datasets available.

Usage

gdl_datasets(session)

Arguments

session

A valid GDL session object to interface with.

Value

A data frame containing a list of datasets.

Examples

# Create a session using your API token (provided by environment here)
session <- gdl_session(Sys.getenv('GDL_API_TOKEN'))
# Request list of datasets
datasets <- gdl_datasets(session)
head(datasets, n=10)
#>                           dataset_name         slug
#> 1             Area Database (archived)     areadata
#> 2                         Demographics demographics
#> 3                   Education and Work    education
#> 4              GDL Vulnerability Index          gvi
#> 5  GDL Vulnerability Index Projections     gvi-ssps
#> 6                               Gender       gender
#> 7                      Geospatial Data         geos
#> 8                           Governance   governance
#> 9                               Health       health
#> 10                     Subnational HDI         shdi