Skip to content
Prev 11218 / 29559 Next

loop through polygons for point in polygon function

Hi David,

Am 17.03.2011 00:32, schrieb david depew:
in case these "points of interest" are something that can be represented as SpatialPoints, you could 
use over() or maybe aggregate() to produce counts of them corresponding to each polygon in your 
SpatialPolygonsDataFrame. This prevents you from looping through the slots of a complex object.

regards,
Tom