{"id":13452368,"url":"https://github.com/vincentarelbundock/countrycode","last_synced_at":"2025-05-14T14:07:47.959Z","repository":{"id":694909,"uuid":"2224231","full_name":"vincentarelbundock/countrycode","owner":"vincentarelbundock","description":"R package: Convert country names and country codes. Assigns region descriptors.","archived":false,"fork":false,"pushed_at":"2025-03-31T19:31:38.000Z","size":34979,"stargazers_count":350,"open_issues_count":15,"forks_count":85,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-14T01:23:01.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://vincentarelbundock.github.io/countrycode","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vincentarelbundock.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-08-17T20:33:13.000Z","updated_at":"2025-05-11T05:39:05.000Z","dependencies_parsed_at":"2023-07-10T15:34:57.403Z","dependency_job_id":"c72d9c78-dc4d-42a5-8b8a-1c83963fc1f9","html_url":"https://github.com/vincentarelbundock/countrycode","commit_stats":{"total_commits":427,"total_committers":28,"mean_commits":15.25,"dds":0.6088992974238876,"last_synced_commit":"9191a3285d0e1110311cf961f1f4719673d5623b"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentarelbundock%2Fcountrycode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentarelbundock%2Fcountrycode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentarelbundock%2Fcountrycode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincentarelbundock%2Fcountrycode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincentarelbundock","download_url":"https://codeload.github.com/vincentarelbundock/countrycode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160014,"owners_count":22024566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:01:22.116Z","updated_at":"2025-05-14T14:07:42.951Z","avatar_url":"https://github.com/vincentarelbundock.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/987058/167296405-e7798ac8-03e7-444e-acaf-d99fc42d1c9e.png\" align=\"right\" alt=\"\" width=\"125\" /\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n\u003c!-- badges: start --\u003e\n[![DOI](http://joss.theoj.org/papers/10.21105/joss.00848/status.svg)](https://doi.org/10.21105/joss.00848)\n\u003ca href = \"https://vincentarelbundock.github.io/countrycode\" target = \"_blank\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Website\u0026message=Visit\u0026color=blue\"\u003e\u003c/a\u003e\n[![R build status](https://github.com/vincentarelbundock/countrycode/workflows/R-CMD-check/badge.svg)](https://github.com/vincentarelbundock/countrycode/actions)\n\u003ca href = \"https://vincentarelbundock.github.io/countrycode\" target = \"_blank\"\u003e\u003cimg src=\"http://cranlogs.r-pkg.org/badges/grand-total/countrycode\"\u003e\u003c/a\u003e\n\u003c!-- badges: end --\u003e\n\n`countrycode` standardizes country names, converts them into ~40 different coding schemes, and assigns region descriptors. Scroll down for more details or visit the [countrycode CRAN page](http://cran.r-project.org/web/packages/countrycode/index.html)\n\nIf you use `countrycode` in your research, we would be very grateful if you could cite our paper:\n\n\u003e Arel-Bundock, Vincent, Nils Enevoldsen, and CJ Yetman, (2018). countrycode: An R package to convert country names and country codes. Journal of Open Source Software, 3(28), 848, https://doi.org/10.21105/joss.00848\n\n## Why `countrycode`?\n\n### The Problem\n\nDifferent data sources use different coding schemes to represent countries (e.g. CoW or ISO). This poses two main problems: (1) some of these coding schemes are less than intuitive, and (2) merging these data requires converting from one coding scheme to another, or from long country names to a coding scheme.\n\n### The Solution\n\nThe `countrycode` function can convert to and from 40+ different country coding schemes, and to 600+ variants of country names in different languages and formats. It uses regular expressions to convert long country names (e.g. Sri Lanka) into any of those coding schemes or country names. It can create new variables with various regional groupings.\n\n## Installation\n\nFrom the R console, type: \n\n```r\ninstall.packages(\"countrycode\")\n```\n\nTo install the latest development version, you can use the `remotes` package:\n\n```r\nlibrary(remotes)\ninstall_github('vincentarelbundock/countrycode')\n```\n\n## Supported codes\n\nTo get an up-to-date list of supported country codes, install the package and type `?codelist`. These include:\n\n* 600+ variants of country names in different languages and formats.\n* AR5\n* Continent and region identifiers.\n* Correlates of War (numeric and character)\n* European Central Bank\n* [EUROCONTROL](https://www.eurocontrol.int) - The European Organisation for the Safety of Air Navigation\n* Eurostat\n* Federal Information Processing Standard (FIPS)\n* Food and Agriculture Organization of the United Nations\n* Global Administrative Unit Layers (GAUL)\n* Geopolitical Entities, Names and Codes (GENC)\n* Gleditsch \u0026 Ward (numeric and character)\n* International Civil Aviation Organization\n* International Monetary Fund\n* International Olympic Committee\n* ISO (2/3-character and numeric)\n* Polity IV\n* United Nations\n* United Nations Procurement Division\n* Varieties of Democracy\n* World Bank\n* World Values Survey\n* Unicode symbols (flags)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentarelbundock%2Fcountrycode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincentarelbundock%2Fcountrycode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincentarelbundock%2Fcountrycode/lists"}