| Title: | Tools for the OeNB Data Web Service |
|---|---|
| Description: | Tools to access data from the data web service of the Oesterreichische Nationalbank (OeNB), <https://www.oenb.at/en/Statistics/User-Defined-Tables/webservice.html>. |
| Authors: | Franz X. Mohr [aut, cre] (ORCID: <https://orcid.org/0009-0003-8890-7781>) |
| Maintainer: | Franz X. Mohr <[email protected]> |
| License: | GPL (>= 2) |
| Version: | 0.1.1 |
| Built: | 2026-10-03 21:39:56 UTC |
| Source: | https://github.com/franzmohr/oenb |
Get potential attributes of individual series from the OeNB's data web service.
oenb_attributes(id, pos, lang = "EN")oenb_attributes(id, pos, lang = "EN")
id |
character specifying the ID of the dataset of interest.
See |
pos |
character specifying the position ID of the indicator of interest.
See |
lang |
Preferred language of the output. Possible values are "DE" for German and "EN" for English (default). |
A data frame with one row per available value of an attribute and the columns
attribute_codethe code of the attribute, such as
"dval1". It is a name of the attr argument of
oenb_data.
attributethe description of the attribute.
value_codethe code of the value, such as "AT". It is
a value of the attr argument of oenb_data.
valuethe description of the value.
Each value of an attribute is listed once.
A data frame without rows is returned if no attributes are found.
NULL is returned if the web service is not available.
See oenb for the workflow and the conditions that are signalled.
series_attr <- oenb_attributes(id = "11", pos = "VDBFKBSC217000") series_attrseries_attr <- oenb_attributes(id = "11", pos = "VDBFKBSC217000") series_attr
Download data sets from the OeNB's data web service https://www.oenb.at/en/Statistics/User-Defined-Tables/webservice.html.
oenb_data( id, pos, freq = NULL, attr = NULL, starttime = NULL, endtime = NULL, lang = "EN" )oenb_data( id, pos, freq = NULL, attr = NULL, starttime = NULL, endtime = NULL, lang = "EN" )
id |
character specifying the ID of the dataset of interest.
See |
pos |
character vector specifying the position IDs of the indicators of interest.
See |
freq |
Frequency of the data. Where available, possible values are
|
attr |
A named vector of further attributes.
See |
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). |
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.
A data frame with one row per observation. The columns are those that the web service reports, typically
periodthe period of the observation, such as
"2019-11".
pos, postitle
the position code and the title of the series.
attr1, attr1dim, attr2, ...the value of each
attribute and the name of that attribute. attrN corresponds to the
attribute dvalN of oenb_attributes. Series with
several values of an attribute have one row per value and period.
freqthe frequency of the observation.
unitmult, unittext
the unit of the values, for
example "6" and "in millions Euro".
valuethe numeric value, in the unit reported in
unittext. It is not rescaled.
period is always the first column and value the last.
NULL is returned if the query does not return any
data or if the web service is not available.
See oenb for the workflow and the conditions that are signalled.
series <- oenb_data(id = "11", pos = "VDBFKBSC217000", freq = "M", attr = c("dval1" = "AT"), starttime = "2019-11", endtime = "2019-12") seriesseries <- oenb_data(id = "11", pos = "VDBFKBSC217000", freq = "M", attr = c("dval1" = "AT"), starttime = "2019-11", endtime = "2019-12") series
Downloads a description of the contents of a specific dataset from the OeNB's data web service.
oenb_dataset(id, lang = "EN")oenb_dataset(id, lang = "EN")
id |
character specifying the ID of the dataset of interest.
See |
lang |
Preferred language of the output. Possible values are "DE" for German and "EN" for English (default). |
A data frame with one row per series of the data set and the columns
position_codethe position code of the series, which is the
pos argument of the other functions.
descriptionthe title of the series.
A data frame without rows is returned if the data set contains no series.
NULL is returned if the web service is not available.
See oenb for the workflow and the conditions that are signalled.
content <- oenb_dataset(id = "11") contentcontent <- oenb_dataset(id = "11") content
Get available frequencies and periods of individual series from the OeNB's data web service.
oenb_frequency(id, pos, lang = "EN")oenb_frequency(id, pos, lang = "EN")
id |
character specifying the ID of the dataset of interest.
See |
pos |
character specifying the position ID of the indicator of interest.
See |
lang |
Preferred language of the output. Possible values are "DE" for German and "EN" for English (default). |
A data frame with the columns
frequencythe code of a frequency, such as "M". It
is a value of the freq argument of oenb_data.
available_periodthe period for which data are available,
as the web service describes it, for example "1998 - 2025".
Each combination of a frequency and a period is listed once.
A data frame without rows is returned if no frequencies are found.
NULL is returned if the web service is not available.
See oenb for the workflow and the conditions that are signalled.
series_freq <- oenb_frequency(id = "11", pos = "VDBFKBSC217000") series_freqseries_freq <- oenb_frequency(id = "11", pos = "VDBFKBSC217000") series_freq
Get metadata on individual series from the OeNB's data web service.
oenb_metadata(id, pos, lang = "EN")oenb_metadata(id, pos, lang = "EN")
id |
character specifying the ID of the dataset of interest.
See |
pos |
character specifying the position ID of the indicator of interest.
See |
lang |
Preferred language of the output. Possible values are "DE" for German and "EN" for English (default). |
A data frame with one row per field of the metadata and the columns
attributethe name of the field, for example "title",
"unit", "source" or "last_update".
descriptionthe content of the field.
The fields are those that the web service reports for the series. Fields
that contain further fields are not included.
A data frame without rows is returned if no metadata are found.
NULL is returned if the web service is not available.
See oenb for the workflow and the conditions that are signalled.
meta <- oenb_metadata(id = "11", pos = "VDBFKBSC217000") metameta <- oenb_metadata(id = "11", pos = "VDBFKBSC217000") meta
Downloads the table of contents of the OeNB's statistical data web service.
oenb_toc(lang = "EN")oenb_toc(lang = "EN")
lang |
Preferred language of the output. Possible values are "DE" for German and "EN" for English (default). |
A data frame with one row per data set and the columns
dataset_idthe ID of the data set, which is the id
argument of the other functions.
descriptionthe title of the data set.
NULL is returned if the web service is not available.
See oenb for the workflow and the conditions that are signalled.
toc <- oenb_toc() toctoc <- oenb_toc() toc