Determine Duplicated Points in a Spatial Point Pattern
Determines which points in a spatial point pattern are duplicates of previous points, and returns a logical vector.
## S3 method for class 'ppp': duplicated(x, \dots, rule=c("spatstat", "deldir"))
- A spatial point pattern
(object of class
- Character string. The rule for determining duplicated points.
This is a method for the generic function
point pattern datasets (of class
Two points in a point pattern are deemed to be identical if their $x,y$ coordinates are the same, and their marks are also the same (if they carry marks). The Examples section illustrates how it is possible for a point pattern to contain a pair of identical points.
This function determines which points in
other points that appeared earlier in the sequence. It
returns a logical vector with entries that are
for duplicated points and
FALSE for unique (non-duplicated)
rule="spatstat" (the default), duplicated points are
determined by testing equality of their coordinates and marks
==. This is the most stringent possible test.
rule="deldir", duplicated points are
determined using the function
in the package
will ensure consistency with functions in the
- A logical vector of length equal to the number of points in
X <- ppp(c(1,1,0.5), c(2,2,1), window=square(3)) duplicated(X) duplicated(X, rule="deldir")