In my data I have one column with country names. I want to make a new variable that lists which region each country is in based on an excel sheet I have where I have labelled each country by region.
I don't want to use the package countrycode because it doesn't have specific enough regions (i.e. it labels the Netherlands as Europe, and not Northern Europe). Is there a way to get R to inspect a cell and match the contents of that cell to another dataset?