Learn R Programming

worldbank (version 0.6.0)

wb_country: World Bank country data

Description

List all countries supported by the World Bank API.

Usage

wb_country(country = NULL, lang = "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.

Arguments

country

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

lang

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

See Also

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

Examples

Run this code
wb_country()

Run the code above in your browser using DataLab