countrycode_data: Country code translation data frame. This data set and the...

countrycode_dataR Documentation

Country code translation data frame. This data set and the following documentation is take from Vincent Arel-Bundock countrycode package version 0.17 with modifications.

Description

A data frame with 262 observations on the following 14 variables. Used internally by the countrycode() function.

Usage

countrycode_data

Format

A data frame with 260 rows and 11 columns

Details

  • country.name: Long country name

  • cowc: Correlates of War character

  • cown: Correlates of War numeric

  • fao: Food and Agriculture Organization of the United Nations numerical code

  • fips104: FIPS 10-4 (Federal Information Processing Standard)

  • imf: International Monetary Fund

  • iso2c: ISO-2 character

  • iso3c: ISO-3 character

  • iso2n: ISO-2 numeric

  • iso3n: ISO-3 numeric

  • un: United Nations numerical code

  • wb: World Bank (very similar but not identical to iso3c)

  • regex: Regular expression used to convert long names to code

  • region: Regions as defined in the World Bank Development Indicators

  • continent: Continent as defined in the World Bank Development Indicators

Note

To produce consistent conversion, some entries had to be removed from the conversion data frame. For example, the Correlates of War include 4 different codes to represent Western Germany. "countrycode" uses only one of them (CoW code 260 for all years). Similar choices were made in the cases of Korea, Yemen, Congo and Vietnam. Also, Namibia's iso2c code ("NA") can be understood as a missing observation (NA) by R.

Capitalized country names refer to the official short English names, as defined by the ISO organization. ISO does not publish official short English names for countries whose name is not capitalized in the the country.name vector. Continent and region information was taken from the UN website.

This is a (possibly incomplete) list of countries and codes that were dropped:

KOREA, REPUBLIC OF: cown 731 730, cowc PRK KOR YEMEN: cown 680 678, cowc YAR YPR GERMANY: cown 267 260 245, cowc BAV GFR BAD CONGO: cown 490, cowc 484 VIET NAM: cown 816, cowc DRV


rOpenGov/psData documentation built on July 30, 2023, 10:05 p.m.