Learn R Programming

r2country (version 2.0.2.4.0)

country_capital: Dataset of countries and their capitals

Description

Dataset containing country IDs and their capitals

Usage

data(country_capital)

Arguments

Value

corresponding capitals of countries

Format

A data frame with the capitals that countries belong to

ID

country identifiers

capital

capitals of various country

References

https://www.wikipedia.org

See Also

Data country_names for linkage of IDs with capital

Examples

Run this code
# 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)


Run the code above in your browser using DataLab