iso3_to_names: Get country names from ISO3 country codes.

Description Usage Arguments Value

View source: R/codes.R

Description

iso3_to_names() takes in a vector of ISO3 codes and returns names as specified by the user. Currently, this can be World Health Organization names, both short and formal, in all 6 official languages and United Nations names in all 6 official languages.

Usage

1
2
3
4
5
6
iso3_to_names(
  iso3,
  org = c("who", "un"),
  type = c("short", "formal"),
  language = c("en", "es", "ru", "ar", "zh", "fr")
)

Arguments

iso3

Character vector of ISO3 codes.

org

Official names of which organization to return. Can be either "who" (default) or "un".

type

"short" (default) or "formal" name to return. Only used when org is "who".

language

A character value specifying the language of the country names. Should be specified using the ISO2 language code. Defaults to "en", but matching available for all 6 official WHO languages. Possible values are "en", "es", "ar", "fr", "ru", and "zh".

Value

Character vector.


caldwellst/whotilities documentation built on April 8, 2021, 3:52 a.m.