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

Italian republic #339

Closed michalovadek closed 1 year ago

michalovadek commented 1 year ago

"Italy" does not capture "Italian republic"

cjyetman commented 1 year ago

might be good to add to the data-known-name-variations.R test file

vincentarelbundock commented 1 year ago

Thanks a lot for the pull request, I really appreciate it. I built the new dictionnary, added a test and merged it. You can now install countrycode from GitHub with:

remotes::install_github("vincentarelbundock/countrycode")

Restart R, then:

library(countrycode)
countrycode("Italian Republic", "country.name", "iso3c")
# [1] "ITA"
countrycode("Italian Republic", "country.name", "country.name")
# [1] "Italy"