# NOT RUN {
# Usable names for tough-to-standardize places
as_country_name(c("US", "TW", "MM", "XK", "KR"))
# If passed a factor, will return a releveled one
as_country_name(factor(c("US", "NF", "CD", "SJ")), short = FALSE, variant = TRUE)
# Speaks a lot of languages, knows a lot of codes
as_country_name(c("SAH", "PCN", "OMA", "JPN"), from = "fifa", to = "cy") # to Welsh
# }
Run the code above in your browser using DataLab