oenb_data: Download OeNB Data

Description Usage Arguments Details Value Examples

View source: R/oenb_data.R

Description

Download data sets from the OeNB's data web service https://www.oenb.at/en/Statistics/User-Defined-Tables/webservice.html.

Usage

1
2
3
4
5
6
7
8
9
oenb_data(
  id,
  pos,
  freq = NULL,
  attr = NULL,
  starttime = NULL,
  endtime = NULL,
  lang = "EN"
)

Arguments

id

character specifying the ID of the dataset of interest. See oenb_toc to obtain the required ID.

pos

character vector specifying the position IDs of the indicators of interest. See oenb_dataset to obtain the required ID.

freq

Frequency of the data. Where available, possible values are "D", "M", "Q", "H", "A" for daily, monthly, quarterly, semi-annual and annual data. See oenb_frequency to obtain possible choices.

attr

A named vector of further attributes. See oenb_attributes to obtain possible choices.

starttime

character specifying the start of the series. See 'Details'.

endtime

character specifying the end of the series. See 'Details'.

lang

Preferred language of the output. Possible values are "DE" for German and "EN" for English (default).

Details

The arguments 'starttime' and 'endtime' can have the format 'YYYY-MM-DD' or 'YYYYMMDD' for daily data, 'YYYY-MM' or 'YYYYMM' for monthly data, and 'YYYY' for annual data. For semiannual data 'YYYY-06' refers to the first half of year 'YYYY' and 'YYYY-12' to the second. Similarly, for quarterly data 'YYYY-03', 'YYYY-06', 'YYYY-09' and 'YYYY-12' refer to the first, second, third and forth quarter of year 'YYYY', respectively.

Value

A data frame.

Examples

1
2
3
series <- oenb_data(id = "11", pos = "VDBFKBSC217000", freq = "M", attr = c("dval1" = "AT"),
                    starttime = "2019-11", endtime = "2019-12")
series

oenb documentation built on March 22, 2021, 5:06 p.m.