USAID-OHA-SI / glamr

SI Utilities
https://usaid-oha-si.github.io/glamr/
Other
2 stars 3 forks source link

Translation - From UN Country names to PEPFAR OU/Country names #7

Closed baboyma closed 3 years ago

achafetz commented 3 years ago

Have you tried countrycode package? this may solve the issue

baboyma commented 3 years ago

Good suggestion. I will add in some columns from naturalearth and save to cross-walk as a local data.

Note: I will also be adding a language option, with default set to en

baboyma commented 3 years ago

Completed

rnaturalearth::ne_countries(type = "sovereignty", 
                            scale = 110, 
                            returnclass = "sf") %>%
  sf::st_drop_geometry() %>%
  dplyr::select(sovereignt, admin, name, adm0_a3) %>%
  glamr::clean_countries(colname = "admin")