# task 1: get only names of countries that contains with "africa" or "AFrica"
# note that the search in case-insensitive
byContinent("africa", full.list = FALSE)
# task 2: get only names of countries that contains with "ASIA" or "asia"
byContinent("asia", full.list = FALSE)
# task 3: repeat task 2, but return full list for each country
byContinent("europe", full.list = TRUE)
Run the code above in your browser using DataLab