Re: [R] random location in polygons sp spsample splancs csr

2008-02-17 Thread Patrick Giraudoux
Thanks for those detailed explanation and the time taken to write them. > The spsample methods for polygons have an iter= argument that can be > used to make then "try harder", did you try it (with what values - the > help page senctence you quote is from the iter= description)? Yes sure, I went

Re: [R] random location in polygons sp spsample splancs csr

2008-02-17 Thread Roger Bivand
On Sun, 17 Feb 2008, Patrick Giraudoux wrote: > Dear all, > > I had to place points at random, one in each of larger number of polygons > (actually in objects of class 'SpatialPolygonsDataFrame' , see sp library), > and tried first to do it using spsample (from sp). Surprisingly, every 5-15 >

[R] random location in polygons sp spsample splancs csr

2008-02-17 Thread Patrick Giraudoux
Dear all, I had to place points at random, one in each of larger number of polygons (actually in objects of class 'SpatialPolygonsDataFrame' , see sp library), and tried first to do it using spsample (from sp). Surprisingly, every 5-15 trials, the output was a NULL value. The doc says that '