Dear R list
Just wanted to share with you the news about a package that helps
converting from different country coding systems (iso2, iso3, fao, un...).
If you are working with country-level data, it happens often that the
countries will be spelled differently, have different codes etc... With
the package countrycode, conversion to your favourite code (fao?) is
facilitated.
I made a quick demo on the intranet:
http://intranet.fao.org/departments/cio/ciok/kisaf/kisaf_home/r_platform/country_codes_conversion/
which shows basically these example:
|install.packages("countrycode")
||library(countrycode)
||countrycode(sourcevar = "GAB", origin = "iso3c", destination = "fao")
||countrycode(sourcevar = c("Gabon", "India"), origin = "country.name", destination = "fao")|
Note that even if this helps for many countries, it is unlikely that it
will work for all, since the package does not include all possible
countries or state boundaries (think holy sea, Gaza band, "old"
countries such as USSR or Yougoslavia..).
Best
Matthieu
--
________________________________
Matthieu Stigler
Economist Consultant, ESS
Room: C-402, extension: 53 364
########################################################################
To unsubscribe from the RHELP-L list, click the following link:
&*TICKET_URL(RHELP-L,SIGNOFF);