Learn R Programming

BIS (version 0.3.1)

get_bis: Download and parse a BIS data set

Description

Download and parse a BIS data set

Usage

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

Value

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

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.

Examples

Run this code
# \donttest{
ds <- get_datasets()
df <- get_bis(ds$url[2])
# }

Run the code above in your browser using DataLab