Using the CountryCodes database and sf package dieghernandieghernan Vignette of the CountryCodes projectUse CountryCodes and sf to match country identifiers and put your data on a map in R.