Description Usage Arguments Value Examples
View source: R/standardize_countries.R
Converts a character string of country names into ISO 3166-1 Format.
Available formats are:
- Alpha 2: Two Letter Country Code (iso2)
- Alpha 3: Three Leter Country Code (iso3)
- Common Name
1 2 | standardize_countries(country, to = c("iso3", "iso2", "iso_name",
"continent_code"), missing = c("keep", "remove"))
|
country |
A character string with country names |
to |
one of c("iso3", "iso2", "iso_name") |
missing |
A character String
1 2 | countries <- c("DE", "Germany", "UK", "GB", "Singapore")
standardize_countries(countries, miss = "remove")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.