set_year {gdldata} | R Documentation |
Set year to retrieve data for
Description
Specify which year to retrieve data for. Only used when retrieving multiple indicators at once.
Usage
set_year(session, year)
Arguments
session |
A valid GDL session object to interface with. |
year |
Year to retrieve data for (integer) |
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_year(session, 2021)
## End(Not run)
[Package gdldata version 0.1 Index]