"wmppp"
representing a two-dimensional point pattern with weights and labels. This is a generic method.as.wmppp(X, ...)
## S3 method for class 'ppp':
as.wmppp(X, \dots)
## S3 method for class 'data.frame':
as.wmppp(X, window = NULL, unitname = NULL, \dots)
wmppp.object
)owin.object
)."wmppp"
.ppp
and data.frame
:
X
is an object of class "ppp" (ppp.object
), the marks are converted to point weights if they are numeric or to point types if they are factors. Default weights are set to 1, default types to "All". If marks are a dataframe with column names equal toPointType
andPointWeight
, they are not modified.X
is a dataframe, see wmppp
.wmppp.object