marks | R Documentation |
S3 methods for the marks
generic.
## S3 method for class 'Dtable'
marks(x, ...)
## S3 replacement method for class 'Dtable'
marks(x, ...) <- value
## S3 replacement method for class 'wmppp'
marks(x, ..., dfok = TRUE, drop = TRUE) <- value
x |
A |
... |
Extra arguments, currently unused. |
value |
The value to set. |
dfok |
Ignored. |
drop |
Ignored. |
These functions extract or modify the marks of a Dtable
.
'marks<-.wmppp()' just calls 'marks<-.ppp()' and keeps the class of the wmppp object. The conformity of the marks with the definition of the class "wmppp", i.e. a dataframe with columns "PointType" and "PointWeight" of the same length as the number of points, is not checked.
A dataframe with columns "PointType" and "PointWeight".
Eric Marcon <Eric.Marcon@agroparistech.fr>
# A Dtable containing two points
Dmatrix <- matrix(c(0,1,1,0), nrow=2)
PointType <- c("Type1", "Type2")
PointWeight <- c(2,3)
X <- Dtable(Dmatrix, PointType, PointWeight)
# Extract the marks
marks(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.