Description Usage Arguments Value Examples
Convert country names to ISO3 codes. Searches the rworldmap map data. With no parameters returns a list of ctryNames and their corresponding codes as given by rworldMap
1 | ctryNameToCode(ctryNames)
|
ctryNames |
Character vector common names of countries to convert |
Character ISO3 ctryCode if found else NA
1 2 3 4 5 | ctryNameToCode("kenya") #returns "KEN"
ctryNameToCode("ken") #returns "KEN"
ctryNameToCode("jamaica") #returns JAM
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.