"["(x, i, drop=FALSE, ...)"ppx").
"boxx" or "box3".
"ppx").
The function [.ppx is a method for [ for the
class "ppx". It extracts a designated subset of a point pattern.
The argument i may be either
x. In the latter case,
the points (x$x[i], x$y[i]) for which
subset[i]=TRUE will be retained, and the others
will be deleted.
"boxx" or "box3".
Points falling inside this region will be retained.
The argument drop determines whether to remove
unused levels of a factor, if the point pattern is multitype
(i.e. the marks are a factor) or if the marks are a data frame or hyperframe
in which some of the columns are factors.
Use the function unmark to remove marks from a
marked point pattern.
ppx
df <- data.frame(x=runif(4),y=runif(4),z=runif(4))
X <- ppx(data=df, coord.type=c("s","s","t"))
X[-2]
Run the code above in your browser using DataLab