On 21/12/11 01:54, Antonio Rodriges wrote:
Hello,
Is there a way to find points in SpatialPoints which lie inside a given Polygon?
You could try:
* load package "spatstat"
* convert your SpatialPoints object to an object of class "ppp"
* convert your polygon to an object of class "owin"
* use inside.owin()
See
vignette("shapefiles")
for instructions on how to do the aforementioned conversion.
cheers,
Rolf Turner
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.