Removes any points that are identical to other points in a spatial point pattern.
# S3 method for ppp
unique(x, ..., warn=FALSE) # S3 method for ppx
unique(x, ..., warn=FALSE)
Another point pattern object.
A spatial point pattern
(object of class "ppp"
or "ppx"
).
Arguments passed to duplicated.ppp
or duplicated.data.frame
.
Logical. If TRUE
, issue a warning message if any
duplicated points were found.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
and Rolf Turner r.turner@auckland.ac.nz
These are methods for the generic function unique
for
point pattern datasets (of class "ppp"
, see
ppp.object
, or class "ppx"
).
This function removes duplicate points in x
,
and returns a point pattern.
Two points in a point pattern are deemed to be identical
if their duplicated.ppp
for other options.
ppp.object
,
duplicated.ppp
,
multiplicity.ppp
X <- ppp(c(1,1,0.5), c(2,2,1), window=square(3))
unique(X)
unique(X, rule="deldir")
Run the code above in your browser using DataLab