Home > Net >  R - Converting Coordinates to Countries? (Large quantity)
R - Converting Coordinates to Countries? (Large quantity)

Time:04-16

I have a data set that includes meteorite landings. It is really cool to see, but it only has coordinates for location data: latitude, longitude, and another variable that includes both of those in a coordinate format.

Is there a way I can convert these into a new variable for the country in which they are located? I have heard of geonames, but that only does one at a time, and I am looking at over 30,000 locations (haha). I could also potentially use a function to go through it, but I've heard it will run into errors with points in the ocean, which there are some here.

My goal here is to create a cartogram. If I can do that with the coordinates instead of making the country names for the entire world, please let me know.

Any help with this is appreciated.

The data set can be downloaded at enter image description here

  •  Tags:  
  • r
  • Related