Description

unifyCountrynames(inVec)

Arguments

inVec

A vector or character string of country name(s)

Value

A character vector containing the unified strings.

Warning

Do not operate heavy machinery within 8 hours of using this function.

Examples

x = c("Congo Kinshasa", "Congo, Republic of", "Congo Brazzaville", "Cote d`Ivoire", "Central African Rep.", "Cabo Verde", "Gambia, The") unifyCountrynames(x)
#> Warning: Paket ‘bindrcpp’ wurde unter R Version 3.4.4 erstellt
#> Warning: binding character and factor vector, coercing into character vector
#> Warning: binding character and factor vector, coercing into character vector
#> [1] "Congo, Dem. Rep." "Congo (the)" "Congo, Rep." #> [4] "Côte d'Ivoire" "Central African Rep." "Cabo Verde" #> [7] "Gambia (the)"