# 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")]
Run the code above in your browser using DataLab