AddDistToRangeToStack: Function to add distance to a list of polygons (e.g. range...

View source: R/AddDistToRangeToStack.R

AddDistToRangeToStackR Documentation

Function to add distance to a list of polygons (e.g. range map) to a stack

Description

Function to add distance to a list of polygons (e.g. range map) to a stack

Usage

AddDistToRangeToStack(in.stk, coords, polynoms, scale = FALSE)

Arguments

in.stk

INLA data stack.

coords

Names of geographic coordinates used in in.stk.

polynoms

List of polygons (a spatialpolygonsdataframe will work).

scale

Should the distance be scaled by dividing by the mean of the non-zero distances? (defaults to FALSE, eitehr logical or numeric).

Value

An INLA stack, with the distance to the polygon added


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