unique.ppp

0th

Percentile

Extract Unique Points from a Spatial Point Pattern

Removes any points that are identical to other points in a spatial point pattern.

Keywords
methods, spatial
Usage
## S3 method for class 'ppp':
unique(x, \dots, warn=FALSE)

## S3 method for class 'ppx': unique(x, \dots, warn=FALSE)

Arguments
x
A spatial point pattern (object of class "ppp" or "ppx").
...
Arguments passed to duplicated.ppp or duplicated.data.frame.
warn
Logical. If TRUE, issue a warning message if any duplicated points were found.
Details

These are methods for the generic function unique for point pattern datasets (of class "ppp", see ppp.object, or class "ppx").

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.

Value

  • Another point pattern object.

See Also

ppp.object, duplicated.ppp, multiplicity.ppp

Aliases
  • unique.ppp
  • unique.ppx
Examples
X <- ppp(c(1,1,0.5), c(2,2,1), window=square(3))
   unique(X)
   unique(X, rule="deldir")
Documentation reproduced from package spatstat, version 1.36-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.