countrycode: An R package to convert country names and country codes
Vincent Arel‐Bundock, Nils Enevoldsen, CJ Yetman · The Journal of Open Source Software · 2018
International organizations, statistical agencies, and research labs use different codes to represent countries.For example, the ISO standard code for Algeria is "DZA", but Eurostat uses "DZ", the International Civil Aviation Organization uses "DA", the Correlates of War project uses "ALG", and the International Monetary Fund uses "612".When researchers merge and analyze data from several sources, incompatible country codes can be a major source of frustration.