Learn R Programming

RJSDMX (version 2.3-3.1)

getTimeSeries: get time series

Description

Extract a list of time series. This function is used to extract a list of time series identified by the parameters provided in input. getTimeSeries(provider, dataflow, start, end)

Usage

getTimeSeries(provider, id, start = "", end = "")

Arguments

id

identifier of the time series

provider

the name of the provider

end

the end time - optional

start

the start time - optional

Examples

Run this code
if (FALSE) {
## get single time series: EXR.A.USD.EUR.SP00.A (or: EXR/A+M.USD.EUR.SP00.A)
my_ts=getTimeSeries('ECB','EXR.A.USD.EUR.SP00.A')
## get monthly and annual frequency: 'EXR.A|M.USD.EUR.SP00.A' (or: EXR/A+M.USD.EUR.SP00.A)
my_ts=getTimeSeries('ECB','EXR.A|M.USD.EUR.SP00.A')
## get all available frequencies: 'EXR.*.USD.EUR.SP00.A' (or: EXR/.USD.EUR.SP00.A)
my_ts=getTimeSeries('ECB','EXR.*.USD.EUR.SP00.A')
}

Run the code above in your browser using DataLab