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")
#> # A tibble: 1 × 9
#>   id          name  unit  source_id source_value source_note source_organization
#>   <chr>       <chr> <chr> <chr>     <chr>        <chr>       <chr>              
#> 1 NY.GDP.MKT… GDP … NA    2         World Devel… GDP at pur… World Bank nationa…
#> # ℹ 2 more variables: topic_id <chr>, topic_value <chr>