iso3_to_names: Get country names from ISO3 country codes.

View source: R/codes.R

iso3_to_namesR Documentation

Get country names from ISO3 country codes.

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

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 Aug. 30, 2022, 2:15 a.m.