Skip to contents

List all regions supported by the World Bank API.

Usage

wb_region(region = NULL, lang = "en")

Arguments

region

character() region to query. Default NULL. If NULL, all regions are returned

lang

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

Value

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

id

The region ID.

code

The region code.

iso2code

The ISO 2 code of the region.

name

The region name.

See also

Examples

wb_region()
#> # A tibble: 44 × 4
#>       id code  iso2code name                                                
#>    <int> <chr> <chr>    <chr>                                               
#>  1    NA AFE   ZH       Africa Eastern and Southern                         
#>  2    NA AFR   A9       Africa                                              
#>  3    NA AFW   ZI       Africa Western and Central                          
#>  4    NA ARB   1A       Arab World                                          
#>  5    NA CAA   C9       Sub-Saharan Africa (IFC classification)             
#>  6    NA CEA   C4       East Asia and the Pacific (IFC classification)      
#>  7    NA CEB   B8       Central Europe and the Baltics                      
#>  8    NA CEU   C5       Europe and Central Asia (IFC classification)        
#>  9    NA CLA   C6       Latin America and the Caribbean (IFC classification)
#> 10    NA CME   C7       Middle East and North Africa (IFC classification)   
#> # ℹ 34 more rows