I think I found a bug or rather a missing update in the package countrycode
:
library(countrycode)
testData <- data.frame(country=c(rep("Germany",3),rep("Kosovo",3)))
testData$iso3 <- countrycode(testData$country, "country.name", "iso3c")
which is problematic not only for political reasons but also because international organizations such as the IMF or the BIS do include Kosovo in their datasets. Countrycode will produce NA's
here.
What do I do with this information? The iso3c should be KSV I think.
EDIT: I contacted the package maintainer who replied that until Kosovo is recognized officially, he'd rather keep it this way.