Extract.msr | R Documentation |
Extract a subset of a signed measure or vector-valued measure.
## S3 method for class 'msr'
x[i, j, ...]
x |
A signed or vector measure.
An object of class |
i |
Object defining the subregion or subset to be extracted.
Either a spatial window (an object of class |
j |
Subset index selecting the vector coordinates to be extracted,
if |
... |
Ignored. |
This operator extracts a subset of
the data which determines the signed measure
or vector-valued measure x
. The result is another measure.
An object of class "msr"
.
msr
X <- rpoispp(function(x,y) { exp(3+3*x) })
fit <- ppm(X ~x+y)
rp <- residuals(fit, type="pearson")
rs <- residuals(fit, type="score")
rp[square(0.5)]
rs[ , 2:3]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.