[R] spatstat sub-selection

From: Tom_R <tom.richardson_at_bristol.ac.uk>
Date: Sat, 05 Jun 2010 15:26:17 -0700 (PDT)

Fellow Users,

In Spatstat, if you have a ppp object with, say 100 points, how do you create another ppp containing a random selection, N, of the original?

You can tell the function 'rthin' to make a sub-selection of points, i.e. "every point is removed with probability 0.5" but you CAN'T set N exactly...

I'm sure this should be easy...

Ta!

Tom

-- 
View this message in context: http://r.789695.n4.nabble.com/spatstat-sub-selection-tp2244619p2244619.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 06 Jun 2010 - 06:33:04 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 06 Jun 2010 - 11:20:28 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