Dear list, I use readShapePoly to import a shape file. The file has multiple polygons (actually, a 'polygon' may consist of multiple polygons that have the same ID). I want to sample one location at random from each of the polygons. I tried to do this with spsample but did not manage (the option "stratified" does not do what I want). I also looked at dotsInPolys but also without success. I think it should be possible with spsample, possibly after first creating a large number of SpatialPolygons objects, one for each polygon, and next sampling one location at random from each of these. Unfortunately I am not very experienced and also failed to achieve what I want in this way. Can you help me? Thanks, Gerard Heuvelink
_______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo