View source: R/MakePointsPolygonStack.R
MakePointsPolygonStack | R Documentation |
Function to create stack for small presence/absence polygons
MakePointsPolygonStack(polys, data, coords = c("X", "Y"), mesh, polydatanames = NULL, respName = "Present", tol = 0.1, tag = "polygon", InclCoords = FALSE)
polys |
Spatial polygon data frame. |
data |
Data frame with columns for coordinates, and others are covariates. |
coords |
Names for columns with coordinates in data. |
mesh |
INLA mesh. |
polydatanames |
Names of covariate data in polygon object. Defaults to NULL, which means no covariate data at polygon level. |
respName |
Name for response (e.g. presence/absence). Might be possible to use >1, but haven't tried. |
tol |
Tolerance for converting points to spatial pixels. |
tag |
Name for tag for the stack (defaults to "points"). |
InclCoords |
Boolean, should coordinates be included in data (defaults to FALSE). |
An INLA stack, which will be treated as points in the analysis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.