country_names: Country names

Description Usage Arguments Examples

View source: R/misc.R

Description

Country names

Usage

1
country_names(x, list = "GW", shorten = FALSE)

Arguments

x

(numeric())
A vector of numeric country codes

list

(logical(1))
Which states list to use? Only "GW" at this time.

shorten

(logical(1))
Shorten some of the longer country names like "Macedonia, the former Yugoslav Republic of"?

Examples

1
2
3
4
5
data("gwstates")
codes <- gwstates$gwcode
cn    <- country_names(codes)
cs    <- country_names(codes, shorten = TRUE)
data.frame(gwcode = codes, country_name = cn, short_names = cs)

states documentation built on April 14, 2021, 5:08 p.m.