Skip to contents

Dataset containing country IDs and their capitals

Usage

data(country_capital)

Format

A data frame with the capitals that countries belong to

ID

country identifiers

capital

capitals of various country

Source

Internal data consisting of countries and their capital

Value

corresponding capitals of countries

See also

Data country_names for linkage of IDs with capital

Examples

# load the capitals dataset
data(country_capital)
data(country_names)
finaldb <- cbind(country_names,country_capital)

# view content of the country and population
head(finaldb)
#>      ID                name    ID          capital
#> 1 10001         Afghanistan 10001            Kabul
#> 2 10002             Albania 10002           Tirana
#> 3 10003             Algeria 10003          Algiers
#> 4 10004             Andorra 10004 Andorra la Vella
#> 5 10005              Angola 10005           Luanda
#> 6 10006 Antigua and Barbuda 10006     Saint John's