[R-sig-Geo] clipping psp & owin
adrian at maths.uwa.edu.au
adrian at maths.uwa.edu.au
Mon Sep 8 10:08:44 CEST 2008
Alexandre Camargo Martensen writes:
> Subject: [R-sig-Geo] clipping psp & owin
> I'm trying to "clip" a psp and an owin object.
> My question is what should I do to get the information of what is inside
the
> clipping object (trans), having as an input object an owin (b).
Use the subset operator "[" to take the intersection of a psp with an owin.
For example
X <- rpoisline(10)
W <- owin(c(0.1,0.7), c(0.2, 0.8))
Y <- X[W]
There are examples in demo(spatstat) and help("[.psp")
Adrian Baddeley
More information about the R-sig-Geo
mailing list