Description Usage Arguments Details Value Examples
View source: R/simple_country_name.R
Translates a vector of country names to common English equivalent. If no match is found the element is returned.
1 |
.x |
a character vector of country names |
Source for common english country names is R package 'countrycode' and alternative country names from 'countrycode' and Wikipedia: "https://en.wikipedia.org/wiki/List_of_alternative_country_names".
a data frame
1 2 | x <- c("Czech", "Great Britain")
simple_country_name(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.