get data revisions

Share:

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

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
  # 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)

## End(Not run)