Skip to contents

Dataset containing country IDs and their population by year

Usage

data(country_population)

Format

A data frame with the population of countries

ID

country identifiers

population2023

country population as of 2023

Source

Internal data consisting of countries and their population

Value

corresponding population size of countries

See also

Data country_names for linkage of IDs with country population size

Examples

# load the population dataset
data(country_population)
data(country_names)
finaldb <- cbind(country_names,country_population)

# view content of the country and population
head(finaldb)
#>      ID                name    ID population2023
#> 1 10001         Afghanistan 10001       34262840
#> 2 10002             Albania 10002        2761785
#> 3 10003             Algeria 10003       45400000
#> 4 10004             Andorra 10004          83523
#> 5 10005              Angola 10005       33086278
#> 6 10006 Antigua and Barbuda 10006         100772