Learn R Programming

wbstats (version 1.0.4)

wb_indicators: Download Avialable Indicators from the World Bank

Description

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

Usage

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

Run this code
# NOT RUN {
# can get a new list of available indicators by downloading new cache
# }
# NOT RUN {
fresh_cache <- wb_cache()
# }
# NOT RUN {
fresh_indicators <- fresh_cache$indicators
# }
# NOT RUN {
# or by running the wb_indicators() function directly
# }
# NOT RUN {
fresh_indicators <- wb_indicators()
# }
# NOT RUN {
# include archived indicators
# see include_archive parameter description
# }
# NOT RUN {
indicators_with_achrive <- wb_indicators(include_archive = TRUE)
# }

Run the code above in your browser using DataLab