codelist: Country Code Translation Data Frame (Cross-Sectional)

Description Format Details Note


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.


data frame with codes as columns


Origin and Destination:

Destination only:


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: 'countrycode::countrycode_panel'. Instead of converting code, we recommend that users dealing with panel data "left-merge" their data into this panel dictionary.

countrycode documentation built on July 8, 2020, 5:54 p.m.