e_country_names: Country names

Description Usage Arguments Details Examples

View source: R/helpers.R

Description

Convert country names to echarts format.

Usage

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

e_country_names_(data, input, output = NULL, 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

1
2
3
4
5
6
7
cns <- data.frame(country = c("US", "BE"))

# replace
e_country_names(cns, country)

# specify output
e_country_names(cns, country, country_name)

JohnCoene/echarts4 documentation built on July 27, 2021, 5:20 p.m.