toISO3: Turn country names into ISO 3166-1 alpha-3 codes.

Description Usage Arguments Details Value Examples

Description

ISO 3166-1 alpha 3 codes are three-letter codes for countries, as specified by the International Standards Organization.

Usage

1

Arguments

names

a vector of country names

Details

This function will typically be used with mutate or transform to create a column that is standard across datasets.

TO DO: Add in options for ISO2, num, etc.

Value

a corresponding vector of ISO 3166 codes. NA when no match can be found for an element of names.

Examples

1
toISO3( c("Russia","China", "Luxembourg", "Nowhere Land"))

dtkaplan/DCF documentation built on May 15, 2019, 4:57 p.m.