languageHas | R Documentation |
Obtain country data matching language first one or more letters
languageHas(char, full.list = TRUE)
char |
character to search for |
full.list |
whether to return only name of country or full list |
country data list matching content from a specified character
countryStartsWith
for country search starting with specified characters, and [countryEndsWith()] for countries that end with a specified characters.
# task 1: get only names of countries that contains with "ER" or "er"
# note that the search in case-insensitive
countryHas("er", full.list = FALSE)
# task 2: get only names of countries that contains with "LAND" or "lAND" or "land"
countryHas("lAND", full.list = FALSE)
# task 3: repeat task 2, but return full list for each country
countryHas("many", full.list = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.