geo_inside | R Documentation |
Returns spatial attributes of coordinates (longitude and latitude) given spatial polygons.
geo_inside(lon, lat, map, variable)
lon |
A numerical vector |
lat |
A numerical vector |
map |
Normally a spatialPolygonDataFrame (sf or sp) |
variable |
The variable name, stored in the map attribute table to be returned. If missing (default) only boolean vector is returned indicating if coordinates are inside or outside any region. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.