Dear All,
I am looking for a way to automatically generate Alpha-3 Country codes from Country Names. Normally, when I merge two different time-series datasets, I merge on country names. But this is a huge problem because some cells are left blank when the country names are different. Then I have to manually copy-paste all the missing cells.I can easily generate an automatic group id for each Country-year dyad, but really don't know how to generate the Alpha-3 codes using a global standard. I think STATA might have a package for this.
My data:
Country Year Chnaid
Afghanistan 2001 Value1
Afghanistan 2002 Value2
......
What I want to have:
Country ccode Year Chnaid
Afghanistan AFG 2001 Value1
Afghanistan AFG 2002 Value 2
Afghanistan AFG 2003 Value 3
Best Regards
Nihat.
I am looking for a way to automatically generate Alpha-3 Country codes from Country Names. Normally, when I merge two different time-series datasets, I merge on country names. But this is a huge problem because some cells are left blank when the country names are different. Then I have to manually copy-paste all the missing cells.I can easily generate an automatic group id for each Country-year dyad, but really don't know how to generate the Alpha-3 codes using a global standard. I think STATA might have a package for this.
My data:
Country Year Chnaid
Afghanistan 2001 Value1
Afghanistan 2002 Value2
......
What I want to have:
Country ccode Year Chnaid
Afghanistan AFG 2001 Value1
Afghanistan AFG 2002 Value 2
Afghanistan AFG 2003 Value 3
Best Regards
Nihat.
Comment