Data request function
Examples
# Create a session using your API token (provided by environment here)
session <- gdl_session(Sys.getenv('GDL_API_TOKEN'))
# Customize parameters
session <- set_indicator(session, 'iwi')
session <- set_country(session, 'IND')
# Finally, request the data from GDL
iwi_india <- gdl_request(session)
iwi_india[1:5, 3:8]
#> ISO_Code Level GDLCODE Region Year iwi
#> 1 IND National INDt Total 1992 26.3
#> 2 IND National INDt Total 1993 26.9
#> 3 IND National INDt Total 1994 27.4
#> 4 IND National INDt Total 1995 28.0
#> 5 IND National INDt Total 1996 28.6
# (showing only the five rows and columns for illustrative purposes)