knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
oenb R packages provides tools to access statistical data via the web service of the Austrian central bank (Oesterreichische Nationalbank, OeNB).
# install.packages("devtools") devtools::install_github("franzmohr/oenb")
A table of available data sets can be obtained with the function
oenb_toc. Its output contains the ID of the data set with a short description.
toc <- oenb_toc() head(toc)
Each data set contains a series of indicators. The function
oenb_dataset can be used to obtain a table of available series for a given data set. Its output contains the position code of a series and a short description.
overview <- oenb_dataset(id = "11") head(overview)
Many series are available in different forms. The function
oenb_attributes obtains a table of available query specifications of a given series.
attrib <- oenb_attributes(id = "11", pos = "VDBFKBSC217000") attrib
Furthermore, series are available in different frequencies. The function
oenb_frequency can be used to obtain the available frequencies of a given series and the periods, for which data are available.
freq <- oenb_frequency(id = "11", pos = "VDBFKBSC217000") freq
Series of a data set can be downloaded with the
series <- oenb_data(id = "11", pos = "VDBFKBSC217000", attr = c("dval3" = "AT"))
Metadata on a specific series can be obtained with the function
meta <- oenb_metadata(id = "11", pos = "VDBFKBSC217000") meta
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.