rOpenGov / eurostat

R tools for Eurostat data
http://ropengov.github.io/eurostat
Other
234 stars 46 forks source link

Greece ISO 2 code is wrong #301

Open Cidree opened 5 months ago

Cidree commented 5 months ago

Hello,

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

image

antaldaniel commented 5 months ago

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 commented 4 months ago

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 commented 4 months ago

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.