| toolCountry2isocode {madrat} | R Documentation | 
toolCountry2isocode
Description
Function used to convert country names from the long name to the ISO 3166-1 alpha 3 country code
Usage
toolCountry2isocode(
  country,
  warn = TRUE,
  ignoreCountries = NULL,
  type = NULL,
  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  | 
ignoreCountries | 
 A vector of country names/codes that exist in the data and that should be removed but without creating a warning (they will be removed in any case). You should use that argument if you are certain that the given entries should be actually removed from the data.  | 
type | 
 deprecated and will be removed soon!  | 
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
Examples
toolCountry2isocode("Germany")
toolCountry2isocode(c("Germany","Fantasyland"),mapping=c("Fantasyland"="BLA"))
[Package madrat version 3.6.4 Index]