Description Usage Arguments Value Examples
View source: R/get_countrycode.R
This function takes a text string and searches within the package data for a country code in the context of valid API country codes.
1 | get_countrycode(countryname = "world")
|
countryname |
A text string such as "Chile", "CHILE" or "CHL". |
A single character if there is a exact match (e.g. get_countrycode("Chile")
) or a
tibble in case of multiple matches (e.g. get_countrycode("Germany")
)
1 | get_countrycode("world")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.