Skip to contents

List all indicators supported by the World Bank API.

Usage

wb_indicator(indicator = NULL, lang = "en")

Arguments

indicator

(character(1)) indicator to query. Default NULL. If NULL, all indicators are returned.

lang

(character(1)) language to query. Default "en".

Value

A data.frame() with the available indicators. The columns are:

id

The indicator ID.

name

The indicator name.

unit

The indicator unit.

source_id

The source ID.

source_value

The source value.

source_note

The source note.

source_organization

The source organization.

topic_id

The topic ID.

topic_value

The topic value.

See also

Examples

wb_indicator("NY.GDP.MKTP.CD")
#>               id              name unit source_id                 source_value
#> 1 NY.GDP.MKTP.CD GDP (current US$) <NA>         2 World Development Indicators
#>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             source_note
#> 1 GDP at purchaser's prices is the sum of gross value added by all resident producers in the economy plus any product taxes and minus any subsidies not included in the value of the products. It is calculated without making deductions for depreciation of fabricated assets or for depletion and degradation of natural resources. Data are in current U.S. dollars. Dollar figures for GDP are converted from domestic currencies using single year official exchange rates. For a few countries where the official exchange rate does not reflect the rate effectively applied to actual foreign exchange transactions, an alternative conversion factor is used.
#>                                                         source_organization
#> 1 World Bank national accounts data, and OECD National Accounts data files.
#>   topic_id      topic_value
#> 1        3 Economy & Growth