simplecountries
is a simple R package that helps to convert alternative country names to common English. It only has the function simple_country_name
. The main source is this wikipedia article and the conversion table from countrycode
.
knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
remotes::install_github("davidsjoberg/simplecountries")
This is a basic example:
library(simplecountries) x <- c("Czech", "Great Britain", "Sverige", "U.K.") simple_country_name(x)
countrycode
insteadSince simplecountries
was made the mature package countrycode
has introduced the function countryname
which does the same thing but is probably better maintained. You probably want to you that package instead. More info here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.