Country Code Translation Data Frame (Cross-Sectional)
Description
A data frame used internally by the countrycode() function. countrycode can use any valid code as destination, but only some codes can be used as origin.
Details
Origin and Destination
cctld: IANA country code top-level domaincountry.name.en: country name (English)country.name.de: country name (German)country.name.fr: country name (French)country.name.it: country name (Italian)country.name.es: country name (Spanish)cowc: Correlates of War charactercown: Correlates of War numericdhs: Demographic and Health Surveys Programecb: European Central Bankeurostat: Eurostatfao: Food and Agriculture Organization of the United Nations numerical codefips: FIPS 10-4 (Federal Information Processing Standard)gaul: Global Administrative Unit Layersgenc2c: GENC 2-letter codegenc3c: GENC 3-letter codegenc3n: GENC numeric codegwc: Gleditsch & Ward charactergwn: Gleditsch & Ward numericimf: International Monetary Fund (Warning: The IMF generally uses ISO codes. These codes are WEO-related, but may be inconsistently used in the wild.)ioc: International Olympic Committeeiso2c: ISO-2 characteriso3c: ISO-3 characteriso3n: ISO-3 numericp5n: Polity V numeric country codep5c: Polity V character country codep4n: Polity IV numeric country codep4c: Polity IV character country codeun: United Nations M49 numeric codesunicode.symbol: Region subtag (often displayed as emoji flag)unhcr: United Nations High Commissioner for Refugeesunpd: United Nations Procurement Divisionvdem: Varieties of Democracy (V-Dem version 8, April 2018)wb: World Bank (very similar but not identical to iso3c)wvs: World Values Survey numeric code
Destination only
cldr.*: 600+ country name variants from the UNICODE CLDR project (e.g., “cldr.short.en”). Inspect thecldr_examplesdata.frame for a full list of available country names and examples.ar5: IPCC’s regional mapping used both in the Fifth Assessment Report (AR5) and for the Reference Concentration Pathways (RCP)continent: Continent as defined in the World Bank Development Indicatorscow.name: Correlates of War country namecurrency: ISO 4217 currency nameeurocontrol_pru: European Organisation for the Safety of Air Navigationeurocontrol_statfor: European Organisation for the Safety of Air Navigationeu28: Member states of the European Union (as of December 2015), without special territorieseu27: Member states of the European Union (as of February 2020), without special territoriesicao.region: International Civil Aviation Organization regioniso.name.en: ISO English short nameiso.name.fr: ISO French short nameiso4217c: ISO 4217 currency alphabetic codeiso4217n: ISO 4217 currency numeric codep4.name: Polity IV country nameregion: 7 Regions as defined in the World Bank Development Indicatorsregion23: 23 Regions as used to be in the World Bank Development Indicators (legacy)telephone: ITU-T E.164 country codes for telecommunicationun.name.ar: United Nations Arabic country nameun.name.en: United Nations English country nameun.name.es: United Nations Spanish country nameun.name.fr: United Nations French country nameun.name.ru: United Nations Russian country nameun.name.zh: United Nations Chinese country nameun.region.name: United Nations region nameun.region.code: United Nations region codeun.regionintermediate.name: United Nations intermediate region nameun.regionintermediate.code: United Nations intermediate region codeun.regionsub.name: United Nations sub-region nameun.regionsub.code: United Nations sub-region codeunhcr.region: United Nations High Commissioner for Refugees region namewvs.name: World Values Survey numeric code country name
Format
A data frame with codes as columns.
Note
The Correlates of War (cow) and Polity 4 (p4) project produce codes in country year format. Some countries go through political transitions that justify changing codes over time. When building a purely cross-sectional conversion dictionary, this forces us to make arbitrary choices with respect to some entities (e.g., Western Germany, Vietnam, Serbia). countrycode includes a reconciled dataset in panel format, codelist_panel. Instead of converting code, we recommend that users dealing with panel data “left-merge” their data into this panel dictionary.