as.wmppp | R Documentation |
Creates a Weighted, Marked, Planar Point Pattern, i.e. an object of class "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, ...)
## S3 method for class 'data.frame'
as.wmppp(X, window = NULL, unitname = NULL, ...)
X |
Data to be converted into a weighted, marked, planar point pattern ( |
window |
An object of calls "owin" ( |
unitname |
Name of unit of length. Either a single character string, or a vector of two character strings giving the singular and plural forms, respectively. |
... |
Extra arguments. |
This is a generic method, implemented for ppp
and data.frame
:
If the dataset 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 to PointType
and PointWeight
, they are not modified. Row names of the dataframe are preserved as row names of the marks, to identify points.
If the dataset X
is a dataframe, see wmppp
.
An object of class "wmppp"
.
wmppp.object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.