countryToISO: From country name to International Organization for...

Description Usage Arguments Details Value Note Author(s) References See Also

View source: R/countryToISO.R

Description

From country name in English to International Organization for Standardization (ISO 3166-1 alpha-2 / alpha-3) [1].

Usage

1
countryToISO(country = NULL, iso = 2)

Arguments

country

Data.Frame class. a vector with countries names in English. See details.

iso

numeric (2 or 3). To define the code whether ISO-2 (iso=2, default value) or ISO-3 (iso=3).

Details

To see the valid names in English the user can use the command data(countryNames).

Value

A data frame object with the ISO 3166-1 alpha-2/alpha-3 assigned to each country.

Note

See: R-Alarcon V, Miranda-Esquivel DR.(submitted) geocleaMT: An R package to cleaning geographical data from electronic biodatabases.

Author(s)

R-Alarcon Viviana and Miranda-Esquivel Daniel R.

References

[1] ISO 2015. International standard for country codes and codes for their subdivisions. Country codes - iso 3166. International Organization for Standardization. Available online at http://www.iso.org/iso/country_codes.

See Also

countryToCentroid


Dmirandae/geocleaMT-1 documentation built on Nov. 18, 2019, 6:26 p.m.