wb_country: World Bank country data

View source: R/indicators.R

wb_countryR Documentation

World Bank country data

Description

List all countries supported by the World Bank API.

Usage

wb_country(country = NULL, lang = "en")

Arguments

country

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

lang

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

Value

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

  • country_id: The country ID.

  • country_code: The country code.

  • country_name: The country name.

  • region_id: The region ID.

  • region_code: The region code.

  • region_value: The region value.

  • admin_region_id: The admin region ID.

  • admin_region_code: The admin region code.

  • admin_region_value: The admin region value.

  • income_level_id: The income level ID.

  • income_level_code: The income level code.

  • income_level_value: The income level value.

  • lending_type_id: The lending type ID.

  • lending_type_code: The lending type code.

  • lending_type_value: The lending type value.

  • capital_city: The capital city.

  • longitude: The longitude.

  • latitude: The latitude.

Source

https://api.worldbank.org/v2/country

See Also

Other indicators data: wb_income_level(), wb_indicator(), wb_language(), wb_lending_type(), wb_region(), wb_source(), wb_topic()

Examples



country <- wb_country()
head(country)



worldbank documentation built on March 15, 2026, 5:07 p.m.