unique.ppp | R Documentation |
Removes any points that are identical to other points in a spatial point pattern.
## S3 method for class 'ppp'
unique(x, ..., warn=FALSE)
## S3 method for class 'ppx'
unique(x, ..., warn=FALSE)
x |
A spatial point pattern
(object of class |
... |
Arguments passed to |
warn |
Logical. If |
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 x,y
coordinates are the same,
and their marks are the same (if they carry marks).
This is the default rule: see duplicated.ppp
for other options.
Another point pattern object.
and \rolf
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.