Skip to contents

Download the entire World Development Indicators dataset as a single zip and return its contents as a list of data frames. Useful for full-dataset analyses where paginating through wb_data() would be slow, and for accessing footnote and series-time metadata that the API does not expose.

Usage

wb_bulk(timeout = 600L)

Arguments

timeout

(integer(1))
Maximum download time in seconds. Default 600.

Value

A named list of data.frame()s:

  • data: indicator values in long format with columns country_name, country_code, indicator_name, indicator_code, year, value.

  • country: country metadata.

  • series: series (indicator) metadata.

  • country_series: country-series-specific notes.

  • series_time: series-year-specific notes.

  • footnote: footnotes per country, series, and year.

Details

The download is roughly 280 MB compressed and may take a minute or more.

Examples

if (FALSE) { # \dontrun{
wdi <- wb_bulk()
head(wdi$data)
} # }