Returns spatial attributes of coordinates (longitude and latitude) given spatial polygons.

geo_inside(lon, lat, map, variable)

Arguments

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.