Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greece ISO 2 code is wrong #301

Open
Cidree opened this issue Mar 26, 2024 · 3 comments
Open

Greece ISO 2 code is wrong #301

Cidree opened this issue Mar 26, 2024 · 3 comments

Comments

@Cidree
Copy link

Cidree commented Mar 26, 2024

Hello,

The ISO 2 code for Greece in the table eurostat::eu_countries is set as EL when it should be GR

image

@antaldaniel
Copy link
Contributor

In the Eurostat nomenclature the abbreviation of Greece is EL, and the code of the United Kingdom is UK. countrycode::country_name uses a different nomenclature for country codes.

@CubicTom
Copy link

CubicTom commented Apr 25, 2024

Hello,

The ISO 2 code for Greece in the table eurostat::eu_countries is set as EL when it should be GR

The countrycode package you are using has its own nomenclature category for eurostat data. You can translate the codes to iso2c:

require(countrycode)

geo <- "EL"

countrycode::countrycode(geo, origin = "eurostat", destination = "iso2c")

@pitkant
Copy link
Member

pitkant commented Apr 29, 2024

Fixed in v4.1 branch commit 24da9db by adding an explicit mention about this special case

I will close this issue when release 4.1 is finalised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants