## S3 method for class 'ppp':
unique(x, \dots, warn=FALSE)
"ppp"
).duplicated.ppp
.TRUE
, issue a warning message if any
duplicated points were found.unique
for
point pattern datasets (of class "ppp"
, see ppp.object
).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 removes duplicate points in x
,
and returns a point pattern.
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