Diederik Strubbe
2011-Jan-20 15:53 UTC
[R] Select unique point occurences per pixel - raster package (?) question
Dear all, This may be a simple question, but I cannot find the solution. I have a point shapefile containing several hundreds of points, and a grid file with a certain pixels size. Certain grid cells have several points falling into them. I am looking for a way to randomly select one point per grid cell, resulting in a new point shapefile whereby there maximum one point per pixel remains. In other words, for the grid layer under consideration, I want to select 'unique point occurrences'. Any suggestions? Many thanks, Diederik -- Dr.Diederik Strubbe Evolutionary Ecology Group Department of Biology University of Antwerp Middelheimcampus GV310 Groenenborgerlaan 171 2020 Antwerpen, Belgium office: +32 3 265 3282 mobile phone: +32 477445568 skype user name: lakrinn [[alternative HTML version deleted]]