emd_env: Process UD raster to calculate EMD with pacakge 'transport'

View source: R/emd_env_fun.R

emd_envR Documentation

Process UD raster to calculate EMD with pacakge 'transport'

Description

Process UD raster to calculate EMD with pacakge 'transport'

Usage

emd_env(rs1, rs2, nbins = 50)

Arguments

rs1

A RasterStack with two layers: (1) the rasterized UD and (2) the values of the environmental covariate.

rs2

A RasterStack with two layers: (1) the rasterized UD and (2) the values of the environmental covariate.

nbins

a numeric vector of length == 1 giving the number of bins to discretize environmental space into. Will create a sequence from the min – max environmental values (from both ranges combined). Defaults to 50.

Value

EMD between rs1 and rs2 in one dimension of environmental space.


jhnhng/trekR documentation built on April 25, 2022, 12:43 p.m.