country_codes {gapminder} | R Documentation |
Country codes
Description
Country codes
Usage
country_codes
Format
Data frame of Gapminder country names and ISO 3166-1 country codes:
- country
Country name.
- iso_alpha
The 3-letter ISO 3166-1 alpha-3 code.
- iso_num
The 3-digit ISO 3166-1 numeric-3 code.
Also includes the countries covered by the supplemental data frame
gapminder_unfiltered
.
Examples
if (require("dplyr")) {
gapminder %>%
filter(year == 2007, country %in% c("Kenya", "Peru", "Syria")) %>%
select(country, continent) %>%
left_join(country_codes)
}
[Package gapminder version 1.0.0 Index]