Package 'BIS'

Title: Programmatic Access to Bank for International Settlements Data
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.
Authors: Stefan Angrick [aut, cre], Eric Persson [aut]
Maintainer: Stefan Angrick <[email protected]>
License: CC0
Version: 0.4
Built: 2025-01-14 19:08:25 UTC
Source: CRAN

Help Index


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 get_datasets()).

...

Arguments passed to download.file() (e.g. quiet = TRUE).

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)