Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unique.ppp

Extract Unique Points from a Spatial Point Pattern


Description

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

Usage

## S3 method for class 'ppp'
unique(x, ..., warn=FALSE)

 ## S3 method for class 'ppx'
unique(x, ..., 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").

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.

Value

Another point pattern object.

Author(s)

and Rolf Turner r.turner@auckland.ac.nz

See Also

Examples

X <- ppp(c(1,1,0.5), c(2,2,1), window=square(3))
   unique(X)
   unique(X, rule="deldir")

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.