| countryToCode | R Documentation |
Converts a vector of English country names to the corresponding ISO 3166-1 alpha-2 codes.
countryToCode(countryNames)
countryNames |
Vector of English language country names. |
A vector of ISO 3166-1 alpha-2 codes or NA.