wb_indicators: Download Avialable Indicators from the World Bank

Description Usage Arguments Examples

View source: R/end_points.R

Description

This function returns a tibble of indicator IDs and related information that are available for download from the World Bank API

Usage

1
wb_indicators(lang, include_archive = FALSE)

Arguments

lang

Language in which to return the results. If lang is unspecified, english is the default. For supported languages see wb_languages(). Possible values of lang are in the iso2 column. A note of warning, not all data returns have support for langauges other than english. If the specific return does not support your requested language by default it will return NA.

include_archive

logical. If TRUE indicators that have been archived by the World Bank will be included in the return. Data for these additional indicators are not available through the standard API and querying them using wb_data() will not return data. Default is FALSE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# can get a new list of available indicators by downloading new cache
fresh_cache <- wb_cache()
fresh_indicators <- fresh_cache$indicators

# or by running the wb_indicators() function directly
fresh_indicators <- wb_indicators()

# include archived indicators
# see include_archive parameter description
indicators_with_achrive <- wb_indicators(include_archive = TRUE)

wbstats documentation built on Jan. 13, 2021, 12:19 p.m.