get_bis: Download and parse a BIS data set

View source: R/BIS.R

get_bisR Documentation

Download and parse a BIS data set

Description

Download and parse a BIS data set

Usage

get_bis(url, auto_pivot = TRUE, ...)

Arguments

url

Character. URL of the data set to be imported (usually obtained through get_datasets()).

auto_pivot

Logical. Controls whether source data set is converted to long format. Set this to FALSE to disable conversion (default: TRUE).

...

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

Details

Large data sets may cause get_bis() to fail if the amount of available memory is insufficient for executing a required pivot operation. As a workaround, users may wish to set auto_pivot = FALSE when calling get_bis(), then subset the data and run pivot_longer_bis() manually. See the vignette for detail.

Value

A tibble data frame, or a list of tibble data frames in cases where the source zip file contains multiple csv files.

Examples


ds <- get_datasets()
df <- get_bis(ds$url[2])


BIS documentation built on Nov. 21, 2022, 5:06 p.m.

Related to get_bis in BIS...