byContinent | R Documentation |
Obtain country data matching language first one or more letters
byContinent(
name = c("asia", "europe", "africa", "north america", "south america", "oceania"),
full.list = TRUE
)
name |
name of continent |
full.list |
whether to return only name of country or full list |
Note that choices for names of continent includes 'asia','europe','africa','north america','south america','oceania'
country data list matching continent
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.