[R-sig-Geo] select polygons in polygons

Murray Richardson murray.richardson at utoronto.ca
Thu Sep 25 15:33:53 CEST 2008


Thanks Friderike.  I assumed this was the answer, but it doesn't appear 
to work with two SPDF objects.  i.e.:

 > overlay(polysA,polysB)
Error in function (classes, fdef, mtable)  :
  unable to find an inherited method for function "overlay", for 
signature "SpatialPolygonsDataFrame", "SpatialPolygonsDataFrame"


Murray


Oehler, Friderike (AGPP) wrote:
> Try 
> ?overlay
>
> Regards,
> Friderike
>
>
> -----Original Message-----
> From: r-sig-geo-bounces at stat.math.ethz.ch
> [mailto:r-sig-geo-bounces at stat.math.ethz.ch] On Behalf Of Murray Richardson
> Sent: 25 September 2008 06:01
> To: r-sig-geo at stat.math.ethz.ch
> Subject: [R-sig-Geo] select polygons in polygons
>
>
> Hello users,
>
> There is probably a very simple solution to this that I am missing: is 
> there a way to select polygons in one SPDF that fall within the polygons 
> of another SPDF? 
> This would save me a lot of processing time as I am having to take a 
> very circuitous route to achieve the same outcome.
>
> Thanks!
>
> Murray
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>




More information about the R-sig-Geo mailing list