calcMoran | R Documentation |
Uses function Moran.I from the ape package to calculate the global spatial correlation of a point process with weights.
calcMoran(x, scol, mcol, ...)
x |
a numeric matrix, with rows corresponding to objects' positions and columns as spatial coordinates. |
scol |
a numeric scalar or vector that prescribes column numbers with spatial coordinates. |
mcol |
a numeric scalar that prescribes a column number with the measurement. |
... |
additional parameters passed to ape::Moran.I |
a list with observed, expected, sd, and p-value
library(ARCOS)
ARCOS::calcMoran(cbind(runif(100), runif(100), rnorm(100)), scol = c(1,2), mcol = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.