{"action":"created","issue":{"url":"https://api.github.com/repos/vincentarelbundock/countrycode/issues/190","repository_url":"https://api.github.com/repos/vincentarelbundock/countrycode","labels_url":"https://api.github.com/repos/vincentarelbundock/countrycode/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/vincentarelbundock/countrycode/issues/190/comments","events_url":"https://api.github.com/repos/vincentarelbundock/countrycode/issues/190/events","html_url":"https://github.com/vincentarelbundock/countrycode/issues/190","id":356542704,"node_id":"MDU6SXNzdWUzNTY1NDI3MDQ=","number":190,"title":"country.name.en for (Democratic) Republic of the Congo","user":{"login":"nroming","id":8913221,"node_id":"MDQ6VXNlcjg5MTMyMjE=","avatar_url":"https://avatars2.githubusercontent.com/u/8913221?v=4","gravatar_id":"","url":"https://api.github.com/users/nroming","html_url":"https://github.com/nroming","followers_url":"https://api.github.com/users/nroming/followers","following_url":"https://api.github.com/users/nroming/following{/other_user}","gists_url":"https://api.github.com/users/nroming/gists{/gist_id}","starred_url":"https://api.github.com/users/nroming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nroming/subscriptions","organizations_url":"https://api.github.com/users/nroming/orgs","repos_url":"https://api.github.com/users/nroming/repos","events_url":"https://api.github.com/users/nroming/events{/privacy}","received_events_url":"https://api.github.com/users/nroming/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-03T15:18:34Z","updated_at":"2018-09-04T22:58:10Z","closed_at":null,"author_association":"NONE","body":"The column country.name.en in codelist_panel contains Congo - Brazzaville and Congo - Kinshasa for the Republic of the Congo and the Democratic Republic of the Congo, respectively. Wikipedia names these as possible names for these countries. Anyway, on their respective UN pages ([Democratic Republic of the Congo](https://www.un.int/drcongo/), [Republic of the Congo](https://www.un.int/congo/)), they use the \"Republican\" names, which in my opinion would also be correct.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vincentarelbundock/countrycode/issues/comments/418544271","html_url":"https://github.com/vincentarelbundock/countrycode/issues/190#issuecomment-418544271","issue_url":"https://api.github.com/repos/vincentarelbundock/countrycode/issues/190","id":418544271,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODU0NDI3MQ==","user":{"login":"cjyetman","id":1708872,"node_id":"MDQ6VXNlcjE3MDg4NzI=","avatar_url":"https://avatars0.githubusercontent.com/u/1708872?v=4","gravatar_id":"","url":"https://api.github.com/users/cjyetman","html_url":"https://github.com/cjyetman","followers_url":"https://api.github.com/users/cjyetman/followers","following_url":"https://api.github.com/users/cjyetman/following{/other_user}","gists_url":"https://api.github.com/users/cjyetman/gists{/gist_id}","starred_url":"https://api.github.com/users/cjyetman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjyetman/subscriptions","organizations_url":"https://api.github.com/users/cjyetman/orgs","repos_url":"https://api.github.com/users/cjyetman/repos","events_url":"https://api.github.com/users/cjyetman/events{/privacy}","received_events_url":"https://api.github.com/users/cjyetman/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T22:58:10Z","updated_at":"2018-09-04T22:58:10Z","author_association":"COLLABORATOR","body":"The `country.name.en` columns in the codelists are taken from the Unicode CLDR country name, which in these two cases are \"Congo - Brazzaville\" and \"Congo - Kinshasa\". The default can only return one possible variant, and CLDR was chosen for a few reasons.\r\n\r\nIf you want to get a different country name variant, like UN's official name, you can choose one of the many different destination codes, like \"un.name.en\" for United Nations English country name:\r\n\r\n```r\r\ncountrycode(c('COG', 'COD'), 'iso3c', 'un.name.en')\r\n\r\n[1] \"Congo\"                            \"Democratic Republic of the Congo\"\r\n```\r\n\r\nThat, however, still does not return exactly what you want, because it's based on the UN's M49 Standard country names for statistical use [found here](https://unstats.un.org/unsd/methodology/m49/). If you want to force the use of your own set of country names, you can provide a custom lookup dictionary with the `custom_dict` option in `countrycode`, or you can adjust specific country names after matching with the `custom_match` option like so:\r\n\r\n```r\r\ncountrycode(c('USA', 'COG', 'COD'), 'iso3c', 'country.name', \r\n            custom_match = c(COG = 'Republic of the Congo', \r\n                             COD = 'Democratic Republic of the Congo'))\r\n\r\n[1] \"United States\"                    \"Republic of the Congo\"           \r\n[3] \"Democratic Republic of the Congo\"\r\n```\r\n\r\nDoes that satisfy your question?"}}
{"actor":{"display_login":"cjyetman"}}