Learn R Programming

RJSDMX (version 3.4-0)

getTimeSeriesTable2: get time series and return a data.frame (SDMX v3)

Description

Extract a list of time series identified by the parameters provided in input, and return a data.frame as result.

Usage

getTimeSeriesTable2(
  provider,
  dataflow,
  key = "",
  filter = "",
  start = "",
  end = "",
  attributes = "all",
  measures = "all",
  updatedAfter = .jnull(),
  includeHistory = FALSE,
  gregorianTime = F
)

Arguments

provider

the name of the provider

dataflow

dataflow of the time series

key

timeseries key

filter

optional filter to be applied

start

the start time - optional

end

the end time - optional

attributes

the comma separated list of attributes to be returned - optional, default='all', 'none' for no attributes

measures

the comma separated list of measures to be returned - optional, default='all', 'none' for no measures

updatedAfter

return only changes after this date - optional

includeHistory

include history of revisions - optional, default=false

gregorianTime

set to true to have all daily dates - optional

Examples

Run this code
if (FALSE) {
# SDMX V3

## get single time series: 
my_ts=getTimeSeriesTable('ECB', dataflow='EXR', key='A.USD.EUR.SP00.A')
## get monthly and annual frequency: 
my_ts=getTimeSeriesTable('ECB', dataflow='EXR', key='A+M.USD.EUR.SP00.A')
## get all available frequencies: 
my_ts=getTimeSeriesTable('ECB', dataflow='EXR', key='.USD.EUR.SP00.A')

#or

## get single time series: EXR.A.USD.EUR.SP00.A
my_ts=getTimeSeriesTable('ECB', dataflow='EXR', 
filter='c[FREQ]=A&c[CURRENCY]=USD&c[CURRENCY_DENOM]=EUR&c[EXR_TYPE]=SP00&c[EXR_SUFFIX]=A')
## get monthly and annual frequency: 
my_ts=getTimeSeriesTable('ECB', dataflow='EXR', 
filter='c[FREQ]=A,M&c[CURRENCY]=USD&c[CURRENCY_DENOM]=EUR&c[EXR_TYPE]=SP00&c[EXR_SUFFIX]=A')
## get all available frequencies: 
my_ts=getTimeSeriesTable('ECB', dataflow='EXR', 
filter='c[CURRENCY]=USD&c[CURRENCY_DENOM]=EUR&c[EXR_TYPE]=SP00&c[EXR_SUFFIX]=A')
}

Run the code above in your browser using DataLab