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]] ______________________________________________ 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.