Learn R Programming

BOJ (version 0.3.4)

pivot_longer_boj: Convert a BOJ data set to long format

Description

Convert a BOJ data set to long format

Usage

pivot_longer_boj(tbl)

Value

A tibble data frame in long format.

Arguments

tbl

Tibble. A tibble data frame containing a BOJ data set (usually obtained via get_boj(item_url, auto_pivot = FALSE)).

Examples

Run this code
# \donttest{
ds   <- get_boj_datasets()
sppi <- get_boj(ds$url[(ds$name == "sppi_q_en")], auto_pivot = FALSE)
sppi <- subset(sppi, code == "PRCS15_52S0000000_CQ")
sppi <- pivot_longer_boj(sppi)
# }

Run the code above in your browser using DataLab