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

From: Patrick Giraudoux <patrick.giraudoux_at_univ-fcomte.fr>
Date: Sun, 17 Feb 2008 19:35:21 +0100

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 up to 10, but no success.

> Could you provide an example with a set.seed() value that does what
> you say, or at least the code you used?
The easiest way is to send the data and the script off list. I will do it.
>
> Did you try asking for multiple points and then choosing a single
> point at random? This would be equivalent to increasing iter while
> asking for a single point.
I did not try this one....

Actually, I found my way out easy with csr() in splancs, and did not fight too much with spsample. My question on the list was just for general information
> PS. Perhaps R-sig-geo is a more appropriate list?
I was wondering too... and chose r-help because I though the question was of 'general' interest enough. This is debatable indeed...

Thank you anyway for your answer, and see you in a few minutes off list...

Cheers,

Patrick



R-help_at_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. Received on Sun 17 Feb 2008 - 18:38:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 17 Feb 2008 - 21:30:14 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive