fetch_dataset.Rd
Fetch dataset with dataset_id `dataset_id`.
fetch_dataset(
dataset_id,
restrictions = list(),
vintage = "latest",
dimensions = "code"
)
The dataset id you want to fetch. You can find dataset codes on the Aeconomica website in the top right of the page showing the dataset.
(optional) A list with keys (corresponding to names of dimensions) mapping to a vector of codes. Only series that have those codes for that dimension are returned in the dataset.
(default "latest") Specify a vintage for the series in the dataset to fetch. Cannot be used if your specify vintages for individual series. Vintage can be any of `current` (alias `latest`, default), `previous` or a date in YYYY-MM-DD form.
can be one of "code" or "name." This dictates whether the values for each dimension of the dataset are returned as the codes for each dimension, or the long names that correspond to those codes.
if (FALSE) { # \dontrun{
fetch_dataset("WJP_STATES")
} # }