set_dataset {gdldata}R Documentation

Set session to retrieve data from a particular dataset

Description

Switch the session to retrieve data from the dataset specified.

Usage

set_dataset(session, dataset)

Arguments

session

A valid GDL session object to interface with.

dataset

Dataset identifier (string)

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_dataset(session, 'shdi')

## End(Not run)

[Package gdldata version 0.1 Index]