countrycode-package: Convert Country Codes or Country Names

Description Details Author(s) References


Convert country codes or country names


The countrycode function can convert to and from several different country coding schemes. It uses regular expressions to convert country names (e.g. Sri Lanka) into any of those coding schemes, or into standardized country names in several languages. It can create variables with the name of the continent and/or several regional groupings to which each country belongs.

Type ?countrycode_data to get a list of available origin and destination codes.


Vincent Arel-Bundock


countrycode documentation built on May 19, 2017, 2:56 p.m.

Search within the countrycode package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.