Convert Country Codes or Country Names

Share:

Description

Convert country codes or country names

Details

The countrycode function can convert to and from 12 different country coding schemes. It uses regular expressions to convert long country names (e.g. Sri Lanka) into any of those coding schemes, or into standardized country names (official short English). It can create variables with the name of the continent and/or region to which each country belongs.

Author(s)

Vincent Arel-Bundock varel@umich.edu

References

http://www.umich.edu/~varel https://github.com/vincentarelbundock/countrycode

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.