powered by
Country names
country_names(x, list = "GW", shorten = FALSE)
(numeric()) A vector of numeric country codes
numeric()
(logical(1)) Which states list to use? Only "GW" at this time.
logical(1)
(logical(1)) Shorten some of the longer country names like "Macedonia, the former Yugoslav Republic of"?
data("gwstates") codes <- gwstates$gwcode cn <- country_names(codes) cs <- country_names(codes, shorten = TRUE) data.frame(gwcode = codes, country_name = cn, short_names = cs)
Run the code above in your browser using DataLab