[R-sig-Geo] Can you query points with a polygon?

Edzer J. Pebesma e.pebesma at geo.uu.nl
Wed Dec 13 14:05:25 CET 2006


Christoph Hofer wrote:
> Hello Kenneth
>
> In the sp package you find the function "point.in.polygon".
>   
Yes, and a convenient wrapper method, called "overlay" which basically 
overlays a polygon coverage (SpatialPolygonsDataFrame) with a point 
coverage (SpatialPointsDataFrame). Try

 > library(sp)
 > ?overlay
 > methods?overlay

--
Edzer




More information about the R-sig-Geo mailing list