thanks,

 I was able to do it using the  "over"  function

Steve

On Fri, May 4, 2012 at 9:37 AM, Anthony Fischbach <afischbach@usgs.gov>wrote:

> You may use something like this.
> X.prj<-spTransform(X, proj4string(pointsDF))     ## project polygons to the
> points coordinate system
> pointsDF.over<-over(x=pointsDF, y=X.prj)        ## perform GIS over lay
> opperation
>
> -----
> Tony Fischbach, Wildlife Biologist
> Walrus Research Program
> Alaska Science Center
> U.S. Geological Survey
> 4210 University Drive
> Anchorage, AK 99508-4650
>
> AFischbach@usgs.gov
> http://alaska.usgs.gov/science/biology/walrus
> --
> View this message in context:
> http://r-sig-geo.2731867.n2.nabble.com/Cropping-a-set-of-points-with-a-polygon-tp7515947p7527731.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]

