Description Usage Arguments Value Examples
Serves as a frontend to the ctryNameToCode and ctryCodeToName functions in one.
1 | searchCountry(searchTerms, extended = FALSE)
|
searchTerms |
The country code/name to search for |
extended |
Whether to do partial searches |
data.frame A mapping of the ctryCode to ctryName if the supplied
searchTerm
is a ctryCode or vice-versa if the searchTerm
was a ctryName
1 2 3 4 5 6 7 | searchCountry("KEN") #returns Kenya
searchCountry("Tanzania") #returns United Republic of Tanzania
searchCountry("uk", TRUE) #returns United Kingdom and Ukraine
searchCountry("rwa", TRUE) #returns Rwanda and Norway
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.