MakePointsPolygonStack: Function to create stack for small presence/absence polygons

View source: R/MakePointsPolygonStack.R

MakePointsPolygonStackR Documentation

Function to create stack for small presence/absence polygons

Description

Function to create stack for small presence/absence polygons

Usage

MakePointsPolygonStack(polys, data, coords = c("X", "Y"), mesh,
  polydatanames = NULL, respName = "Present", tol = 0.1,
  tag = "polygon", InclCoords = FALSE)

Arguments

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).

Value

An INLA stack, which will be treated as points in the analysis.


oharar/PointedSDMs documentation built on July 11, 2022, 11:20 a.m.