wb_country {worldbank}R Documentation

World Bank country data

Description

List all countries supported by the World Bank API.

Usage

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

Arguments

country

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

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

Examples

wb_country()

[Package worldbank version 0.1.0 Index]