List all countries supported by the World Bank API.
Arguments
- country
character()
country to query. DefaultNULL
. IfNULL
, 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.
See also
Other indicators data:
wb_income_level()
,
wb_indicator()
,
wb_language()
,
wb_lending_type()
,
wb_region()
,
wb_source()
,
wb_topic()
Examples
wb_country()
#> # A tibble: 296 × 18
#> country_id country_code country_name region_id region_code region_value
#> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 ABW AW Aruba LCN ZJ Latin Ameri…
#> 2 AFE ZH Africa Eastern an… NA NA Aggregates
#> 3 AFG AF Afghanistan SAS 8S South Asia
#> 4 AFR A9 Africa NA NA Aggregates
#> 5 AFW ZI Africa Western an… NA NA Aggregates
#> 6 AGO AO Angola SSF ZG Sub-Saharan…
#> 7 ALB AL Albania ECS Z7 Europe & Ce…
#> 8 AND AD Andorra ECS Z7 Europe & Ce…
#> 9 ARB 1A Arab World NA NA Aggregates
#> 10 ARE AE United Arab Emira… MEA ZQ Middle East…
#> # ℹ 286 more rows
#> # ℹ 12 more variables: admin_region_id <chr>, admin_region_code <chr>,
#> # admin_region_value <chr>, income_level_id <chr>, income_level_code <chr>,
#> # income_level_value <chr>, lending_type_id <chr>, lending_type_code <chr>,
#> # lending_type_value <chr>, capital_city <chr>, longitude <dbl>,
#> # latitude <dbl>