Learn R Programming

RJSDMX (version 2.3-3.1)

getTimeSeriesRevisions: get data revisions

Description

Extract a list of time series starting from a specific update time and with history of revisions. This function works as getTimeSeries and getSDMX but the query can be narrowed to getting only observations that were updated after a specific point in time, and eventually it returns the revision history of the matching time series. This means that the result list can contain multiple instances of the same time series, each with the specific action and validity attributes.

Usage

getTimeSeriesRevisions(provider, id, start = "", end = "",
  updatedAfter = "", includeHistory = TRUE)

Arguments

id

identifier of the time series

provider

the name of the provider

end

the end time - optional

start

the start time - optional

updatedAfter

the updatedAfter time - optional. It has to be in the form: 'YYYY-MM-DD'

includeHistory

boolean parameter - optional. If TRUE the full list of revisions will be returned

Details

getTimeSeriesRevisions(provider, id, start, end, updatedAfter, includeHistory)

Examples

Run this code
if (FALSE) {
  # get single time series with history:
  my_ts=getTimeSeriesRevisions('ECB','EXR.A.USD.EUR.SP00.A', includeHistory=TRUE)

  # get single time series (only observations updated after january 1st 2015):
  my_ts=getTimeSeriesRevisions('ECB','EXR.A.USD.EUR.SP00.A',
                   updatedAfter='2015', includeHistory=FALSE)

  # get single time series (full revision history starting from january 1st 2015):
  my_ts=getTimeSeriesRevisions('ECB','EXR.A.USD.EUR.SP00.A', 
                   updatedAfter='2015', includeHistory=TRUE)
}

Run the code above in your browser using DataLab