wbcache {wbstats} | R Documentation |
Download an updated list of country, indicator, and source information
Description
Download an updated list of information regarding countries, indicators, sources, data catalog, indicator topics, lending types, and income levels from the World Bank API
Usage
wbcache(lang = c("en", "es", "fr", "ar", "zh"))
Arguments
lang |
Language in which to return the results. If |
Value
A list containing the following items:
-
countries
: A data frame. The result of callingwbcountries
-
indicators
: A data frame.The result of callingwbindicators
-
sources
: A data frame.The result of callingwbsources
-
datacatalog
: A data frame.The result of callingwbdatacatalog
-
topics
: A data frame.The result of callingwbtopics
-
income
: A data frame.The result of callingwbincome
-
lending
: A data frame.The result of callingwblending
Note
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
. For an enumeration of
supported languages by data source please see wbdatacatalog
.
The options for lang
are:
-
en
: English -
es
: Spanish -
fr
: French -
ar
: Arabic -
zh
: Mandarin
List item datacatalog
will always return in english, as the API does not support any
other langauges for that information.
Saving this return and using it has the cache
parameter in wb
and wbsearch
replaces the default cached version wb_cachelist
that comes with the package itself