get_name_variations: Get Country Name Variations

Description Usage Arguments Value Examples

View source: R/get_name_variations.R

Description

Get Country Name Variations

Usage

1
2
get_name_variations(country, country_type = c("iso3", "iso2",
  "iso_name"), collapse = FALSE)

Arguments

country

A character string with standardized country names

country_type

The stadardization type (c("iso3", "iso2", "iso_name"))

collapse

If TRUE variations are separated by '|' else a list is returned

Value

A list of a character vector

Examples

1
2
country <- c("DEU", "GBR", "HKG", "HUN", "IDN")
get_name_variations(country, country_type = "iso3", collapse = TRUE)

MatthiasUckert/Rcountry documentation built on Nov. 10, 2019, 4:43 p.m.