Convert country names to echarts format.

e_country_names(data, input, output, type = "iso2c", ...)

Arguments

data

Data.frame in which to find column names.

input, output

Input and output columns.

type

Passed to countrycode origin parameter.

...

Any other parameter to pass to countrycode.

Details

Taiwan and Hong Kong cannot be plotted.

Examples

cns <- data.frame(country = c("US", "BE")) # replace cns %>% e_country_names(country)
#> country #> 1 United States #> 2 Belgium
# specify output cns %>% e_country_names(country, country.name)
#> country country.name #> 1 US United States #> 2 BE Belgium