continentOf | R Documentation |
Get the continent that a particular country belongs to
continentOf
An object of class list
of length 193.
a list containing all countries and corresponding continents
# view the searchable countries, return first 15
names(continentOf)[1:15]
#task 1: view the continent of algeria
continentOf$algeria
#task 2: view the continent of nigeria
continentOf$nigeria
#task 3: view the continent of multiple countries
continentOf[c("niger","china","colombia")]
#task 4: if the continent is not available
continentOf[c("niger","china","randomtest")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.