vincentarelbundock / countrycode

R package: Convert country names and country codes. Assigns region descriptors.
https://vincentarelbundock.github.io/countrycode
GNU General Public License v3.0
342 stars 84 forks source link

Handling Türkiye #321

Closed JohnsonBrent closed 1 year ago

JohnsonBrent commented 1 year ago

Might want to update the English dictionaries/codelist to handle "Türkiye". Not everyone's adopted the name change, but the UN has. And it's used in recent Eurostat publications.

Fantastic package, btw!

cjyetman commented 1 year ago

see #310 and #308

latest dev version has a fix for this already, but it has not yet been released on CRAN

devtools::install_github("vincentarelbundock/countrycode")
library(countrycode)
packageVersion("countrycode")
#> [1] ‘1.4.1’
countrycode("Turkey", origin="country.name", destination = "iso3c")
#> [1] "TUR"
countrycode("Türkiye", origin="country.name", destination = "iso3c")
#> [1] "TUR"
vincentarelbundock commented 1 year ago

Thanks all. This fix is part of the upcoming CRAN release. Closing.