'See unmatched countries for joinCountryData2Map in rworldmap?

I'm using the joinCountryData2Map function in rworldmap to match my data to the countries in the world map.

I get this result:

230 codes from your data successfully matched countries in the map
11 codes from your data failed to match with a country code in the map
11 codes from the map weren't represented in your data

I cannot figure out how to view those two lists of 11 countries. I am guessing that those 11 countries have issues with their ISO2 codes that I need to correct, but am not sure which ones to check without being able to view those two lists.

I'm guessing there's a solution along the lines of just View(SomeObject$Countries) but I haven't been able to find anything that works.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source