I'm new to R and GIS so please forgive me if this is a simple request.
I was looking for a way to find out if a Lat/Long point is on land or ocean. I found this previous post from a couple of years ago which provides an array of true/false results.
Given a Lat and Lon, identify if the point is over land or ocean?
I was able to get it to display the simple world map with the points, but I had two questions:
How do I use the rworldmap with the more detailed and up to date country polygons? How do I return only the Lat/Long points that are on land?
Basically I am looking to get the Lat/Long points that are on land only and don't know where to start.