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

unmark

Remove Marks


Description

Remove the mark information from a spatial dataset.

Usage

unmark(X)
 ## S3 method for class 'ppp'
unmark(X)
 ## S3 method for class 'splitppp'
unmark(X)
 ## S3 method for class 'psp'
unmark(X)
 ## S3 method for class 'ppx'
unmark(X)

Arguments

X

A point pattern (object of class "ppp"), a split point pattern (object of class "splitppp"), a line segment pattern (object of class "psp") or a multidimensional space-time point pattern (object of class "ppx").

Details

A ‘mark’ is a value attached to each point in a spatial point pattern, or attached to each line segment in a line segment pattern, etc.

The function unmark is a simple way to remove the marks from such a dataset.

Value

An object of the same class as X with any mark information deleted.

Author(s)

See Also

Examples

data(lansing)
  hicks <- lansing[lansing$marks == "hickory", ]

  # plot(hicks)  # still a marked point pattern, but only 1 value of marks
  # plot(unmark(hicks)) # unmarked

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.