Process UD raster to calculate EMD with pacakge 'transport'
emd_env.RdProcess UD raster to calculate EMD with pacakge 'transport'
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.