Remove the mark information from a spatial dataset.
Usage
unmark(X)
# S3 method for ppp
unmark(X)
# S3 method for splitppp
unmark(X)
# S3 method for psp
unmark(X)
# S3 method for ppx
unmark(X)
Value
An object of the same class as X
with any mark information deleted.
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").
data(lansing)
hicks <- lansing[lansing$marks == "hickory", ]
# plot(hicks) # still a marked point pattern, but only 1 value of marks# plot(unmark(hicks)) # unmarked