as_abbrev2: Abbreviate country and regional names to ISO-3X.

Description Usage Arguments Examples

Description

To enable easier merging of datasets of international data. You need to download the countrylist.csv file yourself.

Usage

1
as_abbrev2(x, georgia = "country", abbrev = NA)

Arguments

x

(character vector) The full names of countries and subcountry units.

georgia

(character scalar) Whether "georgia" is a country or a US state ("state"). Defaults to "country".

abbrev

(data.framea) Optional: A data.frame of abbreviations to use.

Examples

1
as_abbrev(c("Denmark", "USA", "India", "Thailand", "Russia", "Korea, South"))

Deleetdk/megadataset documentation built on May 6, 2019, 1:59 p.m.