Learn R Programming

BIS (version 0.3.1)

pivot_longer_bis: Convert a BIS data set to long format

Description

Convert a BIS data set to long format

Usage

pivot_longer_bis(tbl)

Value

A tibble data frame.

Arguments

tbl

Tibble. A tibble data frame containing a BIS data set (usually obtained via get_bis(url, auto_pivot = FALSE)).

Examples

Run this code
# \donttest{
ds    <- get_datasets()
rates <- get_bis(ds$url[ds$id == "full_cbpol_m_csv"], auto_pivot = FALSE)
rates <- subset(rates, ref_area %in% c("US", "DE", "JP"))
rates <- pivot_longer_bis(rates)
# }

Run the code above in your browser using DataLab