Reference manual for the R package bbk 0.4.0, whose functions download data and metadata from the Deutsche Bundesbank and European Central Bank SDMX APIs.
The bbk package, version 0.4.0, is an R package that downloads data and metadata from the 'Bundesbank SDMX Web Service API' and the 'ECB Data Portal API'. It is published on CRAN under the MIT license, depends on R (>= 4.1.0), imports httr2, stats, utils and xml2, and is maintained by Maximilian Muecke.
This manual documents the package's five functions. bbk_data() returns Bundesbank data for a given flow and key with optional start_period, end_period, first_n and last_n arguments, and bbk_series() returns the Bundesbank time series found with a specified key. ecb_data() does the same for ECB data. bbk_metadata() and ecb_metadata() retrieve metadata of type "datastructure", "dataflow", "codelist" or "concept" from the respective SDMX Web Service APIs.
| Version | 0.4.0 |
|---|---|
| License | MIT + file LICENSE |
| R version required | R (>= 4.1.0) |
| Imports | httr2, stats, utils, xml2 |
| Suggests | ggplot2, scales, testthat (>= 3.0.0), tibble |
| Encoding | UTF-8 |
| Needs compilation | no |
| Repository | CRAN (Date/Publication 2024-07-08) |
It depends on R (>= 4.1.0).
Annual YYYY, semi-annual YYYY-S[1-2], quarterly YYYY-Q[1-4], monthly YYYY-MM, weekly YYYY-W[01-53] and daily or business YYYY-MM-DD. If left NULL, no start or end date restriction is applied.
bbk_metadata() and ecb_metadata() query one of "datastructure", "dataflow", "codelist" or "concept".
It returns the Bundesbank time series found with the specified time series key, as a data.frame.