combine_pathways: Calculate the probability of arrival across pathways

View source: R/combine_pathways.R

combine_pathwaysR Documentation

Calculate the probability of arrival across pathways

Description

Calculate the probability of arrival across pathways.

Usage

combine_pathways(x, outfile, return_rast = FALSE)

Arguments

x

Either a RasterStack or a character vector giving file path(s) to rasters. Each raster should describe a pathway to be included in the summation, and cell values give the probability of arrival for the corresponding pathway. All rasters must have the same extent and resolution.

outfile

Character. Output raster file path. If not provided, the RasterLayer will be returned to R.

return_rast

Logical. Should the RasterLayer be returned to R? Ignored if outfile is not provided.

Value

If outfile is specified, the resulting RasterLayer is saved to outfile. If return_rast is TRUE or outfile is not specified, the resulting RasterLayer is returned, otherwise NULL is returned invisibly.


jscamac/edmaps documentation built on June 11, 2022, 1:26 a.m.