getTimeSeriesRevisions {RJSDMX} | R Documentation |
get data revisions
Description
Extract time series starting from a specific update time and with history of revisions. This function works as getTimeSeriesTable 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.
The result is packed into a data.frame
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
## 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)
[Package RJSDMX version 3.3-0 Index]