
Last chance! 50% off unlimited learning
Sale ends in
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
ctryNameToCode(ctryNames)
Character vector common names of countries to convert
Character ISO3 ctryCode if found else NA
# NOT RUN {
ctryNameToCode("kenya") #returns "KEN"
ctryNameToCode("ken") #returns "KEN"
ctryNameToCode("jamaica") #returns JAM
# }
Run the code above in your browser using DataLab