View source: R/toolCountry2isocode.R
toolCountry2isocode | R Documentation |
Function used to convert country names from the long name to the ISO 3166-1 alpha 3 country code
toolCountry2isocode(
country,
warn = TRUE,
ignoreCountries = NULL,
type = NULL,
mapping = NULL
)
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 |
the ISO 3166-1 alpha 3 country code
Jan Philipp Dietrich, Anastasis Giannousakis
readSource
,getSources
toolCountry2isocode("Germany")
toolCountry2isocode(c("Germany","Fantasyland"),mapping=c("Fantasyland"="BLA"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.