| Type: | Package |
| Title: | Programmatic Access to Bank for International Settlements Data |
| Version: | 0.4 |
| Description: | Provides an interface to data provided by the Bank for International Settlements https://www.bis.org, allowing for programmatic retrieval of a large quantity of (central) banking data. |
| License: | CC0 |
| URL: | https://github.com/stefanangrick/BIS |
| BugReports: | https://github.com/stefanangrick/BIS/issues |
| Suggests: | knitr, rmarkdown, ggplot2, zoo |
| Imports: | dplyr, readr, rvest, xml2 |
| VignetteBuilder: | knitr |
| Encoding: | UTF-8 |
| RoxygenNote: | 7.3.2 |
| NeedsCompilation: | no |
| Packaged: | 2025-01-02 07:38:01 UTC; qwerty |
| Author: | Stefan Angrick [aut, cre], Eric Persson [aut] |
| Maintainer: | Stefan Angrick <contact@stefanangrick.net> |
| Repository: | CRAN |
| Date/Publication: | 2025-01-14 13:20:08 UTC |
Download and parse a BIS data set
Description
Download and parse a BIS data set
Usage
get_bis(item_url, ...)
Arguments
item_url |
Character. URL of the data set to be imported (usually
obtained via |
... |
Arguments passed to |
Value
A tibble data frame.
Examples
ds <- get_datasets()
df <- get_bis(ds$url[ds$id == "WS_CBPOL_csv_flat"])
Retrieve a list of available BIS data sets
Description
Retrieve a list of available BIS data sets
Usage
get_datasets(base_url = "https://data.bis.org/bulkdownload")
Arguments
base_url |
Character. URL of the BIS's homepage listing single file data sets for download (optional). |
Value
A tibble data frame.
Examples
ds <- get_datasets()
Read a BIS data set from a local file
Description
Read a BIS data set from a local file
Usage
read_bis(file_path)
Arguments
file_path |
Character. Path to the CSV file to be read (usually obtained via manual download from the BIS homepage). |
Value
A tibble data frame.
Examples
## Not run:
# Example 1: Read a locally stored CSV
df <- read_bis("WS_CBPOL_csv_flat.csv")
# Example 2: Read a locally stored ZIP
df <- read_bis(.unzip_file("WS_CBPOL_csv_flat.zip"))
## End(Not run)