The oenb R package provides tools to access statistical data via the
web service of the Austrian central
bank
(Oesterreichische Nationalbank, OeNB).
install.packages("oenb") # install.packages("devtools") devtools::install_github("franzmohr/oenb")
library("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) #> dataset_id description #> 1 1 OeNB, Eurosystem and monetary indicators #> 2 11 Balance sheet items of the Oesterreichische Nationalbank #> 3 18 International reserves and foreign currency liquidity #> 4 13 Monetary aggregates, consolidated MFI balance sheet #> 5 14 Loans and deposits of MFIs #> 6 100140001 Development of loans
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) #> position_code #> 1 VDBFKBSC217000 #> 2 VDBFKBSC217001 #> 3 VDBFKBSC217013 #> 4 VDBFKBSC217010 #> 5 VDBFKBSC317000 #> 6 VDBFKBSC317001 #> description #> 1 Loans to euro area residents - total #> 2 Loans to euro area residents - MFIs #> 3 Loans to euro area residents - general government #> 4 Loans to other euro area residents #> 5 Holdings of securities other than shares issued by euro area residents - total #> 6 Collected within the framework of the balance sheet report to the ECB MFIs.
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 #> attribute_code attribute value_code #> 1 dval1 Data producer AT #> 2 dval2 Banking sector 00100KI #> 3 dval3 Region / business partner AT #> 4 dval4 Currency Z0Z #> value #> 1 Austria #> 2 Oesterreichische Nationalbank #> 3 Austria #> 4 Not applicable
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 #> frequency available_period #> 1 A 1998 - 2025 #> 2 M Jan. 98 - Aug. 26
Series of a data set can be downloaded with the oenb_data function.
series <- oenb_data(id = "11", pos = "VDBFKBSC217000", attr = c("dval3" = "AT"))
Metadata on a specific series can be obtained with the function
oenb_metadata.
meta <- oenb_metadata(id = "11", pos = "VDBFKBSC217000") meta #> attribute #> 1 title #> 2 region #> 3 unit #> 4 comment #> 5 classification #> 6 breaks #> 7 frequency #> 8 last_update #> 9 source #> 10 lag #> description #> 1 Loans to euro area residents - total #> 2 - #> 3 Euro #> 4 Collected within the framework of the balance sheet report to the ECB loans to euro area residents total. #> 5 European Sytem of National Accounts #> 6 - #> 7 month #> 8 2026-09-14 07:01:37 #> 9 OeNB #> 10 -