gapminder (version 0.3.0)

country_codes: Country codes

Description

Data frame of Gapminder country names and ISO 3166-1 country codes:

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.

Usage

country_codes

Arguments

Format

An object of class tbl_df (inherits from tbl, data.frame) with 187 rows and 3 columns.

Examples

Run this code
if (require("dplyr")) {
gapminder %>%
  filter(year == 2007, country %in% c("Kenya", "Peru", "Syria")) %>%
  select(country, continent) %>% 
  left_join(country_codes)
}

Run the code above in your browser using DataCamp Workspace