wdi_get_sources {wbwdi} | R Documentation |
Download data sources from the World Bank API
Description
This function returns a tibble of supported data sources for querying the World Bank API. The data sources include various databases and datasets provided by the World Bank.
Usage
wdi_get_sources(language = "en")
Arguments
language |
A character string specifying the language code for the API response (default is "en" for English). |
Details
This function provides a reference for the supported data sources
and their metadata when querying the World Bank API. The columns
is_data_available
and is_metadata_available
are logical values
derived from the API response, where "Y" indicates availability.
Value
A tibble with six columns:
- source_id
An integer identifier for the data source.
- source_code
A character string for the source code.
- source_name
The name of the data source (e.g., "World Development Indicators").
- update_date
The last update date of the data source.
- is_data_available
A boolean indicating whether data is available.
- is_metadata_available
A boolean indicating whether metadata is available.
- concepts
The number of concepts defined for the data source.
Source
https://api.worldbank.org/v2/sources
Examples
# Download all available data sources in English
wdi_get_sources()