wb_country_indicator {worldbank}R Documentation

World Bank country indicator data

Description

List all country indicators supported by the World Bank API.

Usage

wb_country_indicator(
  indicator = "NY.GDP.MKTP.CD",
  country = NULL,
  lang = "en",
  start_year = NULL,
  end_year = NULL
)

Arguments

indicator

character(1) indicator to query.

country

character() country to query. Default NULL. If NULL, all countries are returned.

lang

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

start_year

integer(1) start year to query. Default NULL.

end_year

integer(1) end year to query. Default NULL.

Value

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

date

The date

indicator_id

The indicator ID.

indicator_name

The indicator name.

country_id

The country ID.

country_name

The country name.

country_code

The country code.

value

The indicator value.

unit

The indicator unit.

obs_status

The observation status.

decimal

The decimal.

Source

http://api.worldbank.org/v2/country/{country}/indicator/{indicator}

Examples

wb_country_indicator("NY.GDP.MKTP.CD", "US")

[Package worldbank version 0.1.0 Index]