andybega / states

Create country-year/month/day panels consistent with the COW or Gleditsch & Ward independent states lists
https://andybeger.com/states/
Other
14 stars 0 forks source link

iso3c column aren't iso3c codes #19

Closed thereseanders closed 4 years ago

thereseanders commented 4 years ago

The iso3c column aren not ISO 3166-1 alpha-3 codes based on the UN Statistics division. Naming them iso3c is misleading.

I believe these are custom 3-letter country codes in the Gleditsch & Ward data that I am guessing are based on COW 3-letter country codes (with a few exceptions).

The countrycode package has all three codes to verify these aren't iso3c codes:

library(countrycode)
countrycode::codelist %>%
  dplyr::select(country.name.en, cowc, gwc, gwn, iso3c)
andybega commented 4 years ago

Hi, thanks! I have renamed the columns gwc and cowc, what do you think?

thereseanders commented 4 years ago

Yes, that clarifies it!