Skip to contents

Loads Time Series Datasets

Usage

load_datasets(id, use_cache = TRUE)

Arguments

id

is character vector of Dataset Series identifier.

use_cache

is Boolean, defaults to TRUE, if TRUE it reloads the Dataset from cached values.

Value

a dataset object for the time-series identifier, i.e. a list containing a list 'dimensions' of data.frames with the valid dimensions values, and a function 'get_series' to retrieve time-series data.

Examples

DOT <- load_datasets("DOT")

DOT$get_series(freq = "M",
               ref_area ="GB",
               indicator = "TMG_CIF_USD",
               counterpart_area = c("B0","W00"),
               start_period = "2022-01-01",
               end_period = "2022-12-31")
#>    TIME_PERIOD M.GB.TMG_CIF_USD.W00 M.GB.TMG_CIF_USD.B0
#> 1      2022-01         69488.386765        29272.528194
#> 2      2022-02          66420.80124        30515.002361
#> 3      2022-03         77564.770594        36648.560261
#> 4      2022-04          66149.73486        31793.126517
#> 5      2022-05         66497.839354          33520.1189
#> 6      2022-06         64666.042333        32358.243148
#> 7      2022-07         61687.129676         31412.19868
#> 8      2022-08         63341.753686        29345.534495
#> 9      2022-09         61042.506886        27984.087315
#> 10     2022-10         60414.023838        30142.632921
#> 11     2022-11          67111.03835        33927.080146
#> 12     2022-12         68882.100768        32792.454188