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 Gross domestic product is the total income earned through the production of goods and services in an economic territory during an accounting period. It can be measured in three different ways: using either the expenditure approach, the income approach, or the production approach. This indicator is expressed in current prices, meaning no adjustment has been made to account for price changes over time. This indicator is expressed in United States dollars.
#>                                                                                                                                                                                                     source_organization
#> 1 Country official statistics, National Statistical Organizations and/or Central Banks;\nNational Accounts data files, Organisation for Economic Co-operation and Development (OECD);\nStaff estimates, World Bank (WB)
#>   topic_id      topic_value
#> 1        3 Economy & Growth