Skip to contents

Fetch the names of all countries

Usage

countries

Format

An object of class character of length 193.

Value

Names of all countries in the globe

Examples

# list all the countries
countries
#>   [1] "Afghanistan"                      "Albania"                         
#>   [3] "Algeria"                          "Andorra"                         
#>   [5] "Angola"                           "Antigua and Barbuda"             
#>   [7] "Argentina"                        "Anguilla"                        
#>   [9] "Armenia"                          "Austria"                         
#>  [11] "Australia"                        "Azerbaijan"                      
#>  [13] "Bahrain"                          "Bahamas"                         
#>  [15] "Bangladesh"                       "Barbados"                        
#>  [17] "Belarus"                          "Belgium"                         
#>  [19] "Belize"                           "Benin"                           
#>  [21] "Bhutan"                           "Bolivia"                         
#>  [23] "Bosnia and Herzegovina"           "Botswana"                        
#>  [25] "Brazil"                           "Brunei"                          
#>  [27] "Bulgaria"                         "Burkina Faso"                    
#>  [29] "Burundi"                          "Cape Verde"                      
#>  [31] "Cambodia"                         "Cameroon"                        
#>  [33] "Canada"                           "Central African Republic"        
#>  [35] "Chad"                             "Chile"                           
#>  [37] "China"                            "Colombia"                        
#>  [39] "Comoros"                          "DR Congo"                        
#>  [41] "Congo"                            "Costa Rica"                      
#>  [43] "Côte d'Ivoire"                    "Croatia"                         
#>  [45] "Cuba"                             "Cyprus"                          
#>  [47] "Czech Republic"                   "Denmark"                         
#>  [49] "Djibouti"                         "Dominica"                        
#>  [51] "Dominican Republic"               "East Timor"                      
#>  [53] "Ecuador"                          "Egypt"                           
#>  [55] "El Salvador"                      "Equatorial Guinea"               
#>  [57] "Eritrea"                          "Estonia"                         
#>  [59] "Eswatini"                         "Ethiopia"                        
#>  [61] "Faeroe Islands"                   "Falkland Islands"                
#>  [63] "Fiji"                             "Finland"                         
#>  [65] "France"                           "Gabon"                           
#>  [67] "Gambia"                           "Georgia"                         
#>  [69] "Germany"                          "Ghana"                           
#>  [71] "Gibraltar"                        "Greece"                          
#>  [73] "Grenada"                          "Guatemala"                       
#>  [75] "Guinea"                           "Guinea-Bissau"                   
#>  [77] "Guyana"                           "Haiti"                           
#>  [79] "Honduras"                         "Hong Kong"                       
#>  [81] "Hungary"                          "Iceland"                         
#>  [83] "India"                            "Indonesia"                       
#>  [85] "Iran"                             "Iraq"                            
#>  [87] "Ireland"                          "Isle of Man"                     
#>  [89] "Israel"                           "Italy"                           
#>  [91] "Jamaica"                          "Japan"                           
#>  [93] "Jordan"                           "Kazakhstan"                      
#>  [95] "Kenya"                            "Kosovo"                          
#>  [97] "Kuwait"                           "Kyrgyzstan"                      
#>  [99] "Laos"                             "Latvia"                          
#> [101] "Lebanon"                          "Lesotho"                         
#> [103] "Liberia"                          "Libya"                           
#> [105] "Liechtenstein"                    "Lithuania"                       
#> [107] "Luxembourg"                       "Macau"                           
#> [109] "Madagascar"                       "Malawi"                          
#> [111] "Malaysia"                         "Maldives"                        
#> [113] "Mali"                             "Malta"                           
#> [115] "Mauritania"                       "Mauritius"                       
#> [117] "Mexico"                           "Moldova"                         
#> [119] "Monaco"                           "Mongolia"                        
#> [121] "Montenegro"                       "Morocco"                         
#> [123] "Mozambique"                       "Myanmar"                         
#> [125] "Namibia"                          "Nepal"                           
#> [127] "Netherlands"                      "New Zealand"                     
#> [129] "Nicaragua"                        "Niger"                           
#> [131] "Nigeria"                          "North Korea"                     
#> [133] "North Macedonia"                  "Norway"                          
#> [135] "Oman"                             "Pakistan"                        
#> [137] "Panama"                           "Paraguay"                        
#> [139] "Peru"                             "Philippines"                     
#> [141] "Poland"                           "Portugal"                        
#> [143] "Qatar"                            "Romania"                         
#> [145] "Russia"                           "Rwanda"                          
#> [147] "Saint Helena"                     "Saint Kitts and Nevis"           
#> [149] "Saint Lucia"                      "Saint Vincent and the Grenadines"
#> [151] "San Marino"                       "Sao Tome & Principe"             
#> [153] "Saudi Arabia"                     "Senegal"                         
#> [155] "Serbia"                           "Seychelles"                      
#> [157] "Sierra Leone"                     "Singapore"                       
#> [159] "Slovakia"                         "Slovenia"                        
#> [161] "Somalia"                          "South Africa"                    
#> [163] "South Korea"                      "South Sudan"                     
#> [165] "Spain"                            "Sri Lanka"                       
#> [167] "Palestine"                        "Sudan"                           
#> [169] "Suriname"                         "Sweden"                          
#> [171] "Switzerland"                      "Syria"                           
#> [173] "Taiwan"                           "Tajikistan"                      
#> [175] "Tanzania"                         "Thailand"                        
#> [177] "Togo"                             "Trinidad and Tobago"             
#> [179] "Tunisia"                          "Turkey"                          
#> [181] "Turkmenistan"                     "Uganda"                          
#> [183] "Ukraine"                          "United Arab Emirates"            
#> [185] "United Kingdom"                   "United States"                   
#> [187] "Uruguay"                          "Uzbekistan"                      
#> [189] "Venezuela"                        "Vietnam"                         
#> [191] "Yemen"                            "Zambia"                          
#> [193] "Zimbabwe"                        

# list only 5 countries
countries[1:5]
#> [1] "Afghanistan" "Albania"     "Algeria"     "Andorra"     "Angola"     

# create a dataset with all countries of the world
data.frame(ID = quickcode::number(length(countries)), Names = countries)
#>            ID                            Names
#> 1   268094895                      Afghanistan
#> 2   462655884                          Albania
#> 3   472773882                          Algeria
#> 4   385812677                          Andorra
#> 5   170170185                           Angola
#> 6   568997707              Antigua and Barbuda
#> 7   451568298                        Argentina
#> 8   967319864                         Anguilla
#> 9   931783072                          Armenia
#> 10  908413862                          Austria
#> 11  338548443                        Australia
#> 12  880859912                       Azerbaijan
#> 13    1833883                          Bahrain
#> 14  386901088                          Bahamas
#> 15  909749006                       Bangladesh
#> 16  642600830                         Barbados
#> 17  412602534                          Belarus
#> 18  860015102                          Belgium
#> 19  916186432                           Belize
#> 20  317963941                            Benin
#> 21  370197502                           Bhutan
#> 22  238930174                          Bolivia
#> 23  176311558           Bosnia and Herzegovina
#> 24  501043788                         Botswana
#> 25  950441708                           Brazil
#> 26  857847177                           Brunei
#> 27  144227238                         Bulgaria
#> 28   43965593                     Burkina Faso
#> 29  532850768                          Burundi
#> 30   47596647                       Cape Verde
#> 31  457535496                         Cambodia
#> 32  797302061                         Cameroon
#> 33  276291672                           Canada
#> 34  584209604         Central African Republic
#> 35  863807545                             Chad
#> 36  913461865                            Chile
#> 37  133551140                            China
#> 38  757397626                         Colombia
#> 39  416293012                          Comoros
#> 40  187329559                         DR Congo
#> 41  571053170                            Congo
#> 42  226382923                       Costa Rica
#> 43  485255946                    Côte d'Ivoire
#> 44  109999040                          Croatia
#> 45   83345270                             Cuba
#> 46  293277682                           Cyprus
#> 47  721934678                   Czech Republic
#> 48   18576282                          Denmark
#> 49    3389073                         Djibouti
#> 50  190303070                         Dominica
#> 51  498848020               Dominican Republic
#> 52  686020628                       East Timor
#> 53  432485873                          Ecuador
#> 54   35898124                            Egypt
#> 55  685613778                      El Salvador
#> 56  158287353                Equatorial Guinea
#> 57  261087356                          Eritrea
#> 58  368331251                          Estonia
#> 59  305902921                         Eswatini
#> 60  312680082                         Ethiopia
#> 61  338835760                   Faeroe Islands
#> 62  188503824                 Falkland Islands
#> 63  179540203                             Fiji
#> 64  340388462                          Finland
#> 65  640367133                           France
#> 66  404957341                            Gabon
#> 67  316212924                           Gambia
#> 68   58861557                          Georgia
#> 69   54496600                          Germany
#> 70  618863232                            Ghana
#> 71  793206862                        Gibraltar
#> 72  638803002                           Greece
#> 73  234007201                          Grenada
#> 74  441882654                        Guatemala
#> 75  625264481                           Guinea
#> 76  381715704                    Guinea-Bissau
#> 77  333718332                           Guyana
#> 78   12468338                            Haiti
#> 79  750131580                         Honduras
#> 80  449492586                        Hong Kong
#> 81  214433562                          Hungary
#> 82  929922095                          Iceland
#> 83  731496245                            India
#> 84  883863022                        Indonesia
#> 85  452037469                             Iran
#> 86  881682139                             Iraq
#> 87   78081900                          Ireland
#> 88   11679572                      Isle of Man
#> 89  368215197                           Israel
#> 90  463995877                            Italy
#> 91  396934118                          Jamaica
#> 92  390958723                            Japan
#> 93  244272795                           Jordan
#> 94  949226587                       Kazakhstan
#> 95  280022299                            Kenya
#> 96  609429152                           Kosovo
#> 97  353603397                           Kuwait
#> 98  154670547                       Kyrgyzstan
#> 99  931607278                             Laos
#> 100 902245464                           Latvia
#> 101 627395056                          Lebanon
#> 102 685682810                          Lesotho
#> 103 869116146                          Liberia
#> 104 112526830                            Libya
#> 105 205738878                    Liechtenstein
#> 106 311517218                        Lithuania
#> 107   4327584                       Luxembourg
#> 108 177487261                            Macau
#> 109 585235113                       Madagascar
#> 110 250888691                           Malawi
#> 111 267610879                         Malaysia
#> 112  38535775                         Maldives
#> 113 255979434                             Mali
#> 114 643509234                            Malta
#> 115 770211841                       Mauritania
#> 116 706252007                        Mauritius
#> 117 365422497                           Mexico
#> 118 835375916                          Moldova
#> 119 231484850                           Monaco
#> 120 943039622                         Mongolia
#> 121 894100240                       Montenegro
#> 122 659759532                          Morocco
#> 123 563973771                       Mozambique
#> 124 331775625                          Myanmar
#> 125 797281723                          Namibia
#> 126 752575949                            Nepal
#> 127  21279551                      Netherlands
#> 128  84750994                      New Zealand
#> 129 364475829                        Nicaragua
#> 130 179351669                            Niger
#> 131 367339215                          Nigeria
#> 132 911568992                      North Korea
#> 133 776484206                  North Macedonia
#> 134 803157107                           Norway
#> 135 154287061                             Oman
#> 136 786485875                         Pakistan
#> 137 479306259                           Panama
#> 138 234745495                         Paraguay
#> 139 132876895                             Peru
#> 140 274476022                      Philippines
#> 141 971513875                           Poland
#> 142 793144873                         Portugal
#> 143 532560465                            Qatar
#> 144 288516193                          Romania
#> 145 880650067                           Russia
#> 146 546352206                           Rwanda
#> 147 925084069                     Saint Helena
#> 148 731196949            Saint Kitts and Nevis
#> 149 603329795                      Saint Lucia
#> 150 695447938 Saint Vincent and the Grenadines
#> 151  74803537                       San Marino
#> 152 915134032              Sao Tome & Principe
#> 153  97285193                     Saudi Arabia
#> 154 393008480                          Senegal
#> 155 808574785                           Serbia
#> 156 138544108                       Seychelles
#> 157  24129368                     Sierra Leone
#> 158 914429677                        Singapore
#> 159 891749317                         Slovakia
#> 160 521182626                         Slovenia
#> 161 822298651                          Somalia
#> 162 332545855                     South Africa
#> 163  97098169                      South Korea
#> 164 124455241                      South Sudan
#> 165 678466266                            Spain
#> 166 465871585                        Sri Lanka
#> 167 444675743                        Palestine
#> 168 643240930                            Sudan
#> 169 884616396                         Suriname
#> 170 272214860                           Sweden
#> 171 476766965                      Switzerland
#> 172 395801518                            Syria
#> 173 737481058                           Taiwan
#> 174 868515190                       Tajikistan
#> 175 628504100                         Tanzania
#> 176 265382717                         Thailand
#> 177 245059619                             Togo
#> 178 430814764              Trinidad and Tobago
#> 179 563858426                          Tunisia
#> 180 175580918                           Turkey
#> 181 311872999                     Turkmenistan
#> 182  36767299                           Uganda
#> 183 809630904                          Ukraine
#> 184 614773554             United Arab Emirates
#> 185  84507280                   United Kingdom
#> 186 908530370                    United States
#> 187 440220717                          Uruguay
#> 188  70436680                       Uzbekistan
#> 189 269246975                        Venezuela
#> 190 162384695                          Vietnam
#> 191 704520005                            Yemen
#> 192 257124395                           Zambia
#> 193 483790896                         Zimbabwe