toolCountry2isocode: toolCountry2isocode

Description Usage Arguments Value Author(s) See Also Examples

View source: R/toolCountry2isocode.R

Description

Function used to convert country names from the long name to the ISO 3166-1 alpha 3 country code

Usage

1
toolCountry2isocode(country, warn = TRUE, type = "IEA", mapping = NULL)

Arguments

country

A vector of country names

warn

whether warnings should be printed now or in the end of the whole process as notes

type

the name of the source type

mapping

additional mappings as a names vector

Value

the ISO 3166-1 alpha 3 country code

Author(s)

Jan Philipp Dietrich, Anastasis Giannousakis

See Also

readSource,getSources

Examples

1
2
toolCountry2isocode("Germany")
toolCountry2isocode(c("Germany","Fantasyland"),mapping=c("Fantasyland"="BLA"))

madrat documentation built on Dec. 25, 2019, 9:07 a.m.