DistGDM: Compute the environmental or biological distance between...

Description Usage Arguments Value

View source: R/DistGDM.R

Description

Compute the environmental or biological distance between pairs of sites

Usage

1
DistGDM(site.grid, gdm.rast, env.vars, dist = "mhtn")

Arguments

site.grid

A two column data.frame with the cell id of pairs of sites to compare. Cell ids must match the env.vars raster* object.

gdm.rast

A gdm model object.

env.vars

A rasterStack object of gdm transformed environmental predictors. Obtained by using the gdm.transform option in the gdm package.

dist

Either "bio" to compute the biological distance between pairs of sites or "mhtn" to compute the manhattan environmental distance between pairs of sites.

Value

A vector of biological distances between pairs of sites.


jivelasquezt/WhereNext-Pkg documentation built on Oct. 11, 2021, 9:46 p.m.