Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Get world region name from a country name in R

$
0
0

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?


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>