countrystandard: country_standard

Description Usage Arguments Value Examples

Description

country_standard

Usage

1
country_standard(x = NULL, code = "ISOA3", name = "ISOname")

Arguments

x

A character vector of country names, either spelled correctly or with misspellings, that you wish to standardize

code

A character vector of country code. Defaults to "ISOA3", options: "ISOA3", "ISOA2", "ISON", "IMFcode", "FIPS", "STANAG", "Internet"

name

A character vector of country name. Defaults to "ISOname", options: "ISOname", "IMFname", "FIPSname"

Value

a character vector of supplied country names, a vector of corrected country names, and and optional vector of country codes

Examples

1
country_standard(c("congo", "congo dr", "Democratic People's Republic of Congo"), code="IMFcode", name="IMFname")

robtenorio/countrystandard documentation built on May 27, 2019, 12:13 p.m.