block_cells: Which cells should be considered invalid if movement occurs?

Description Usage Arguments Value

Description

This is an example function for desginating certain cells invalid/outofbounds. Can customize this to account for landscape features (i.e. lakes, rivers, mountains) where movement is not possible. Function must have two arguments: the raster input and other params passed as a list. Function must output the indexes to block, the indexes considered out of bounds, and the indices to track.

Usage

1
block_cells(rast, params = list(start_pop))

Arguments

rast

raster generated using setup_space function

params

a list of params, in this case, integer vector of the population size in each cell of rast

Value

indexes to block, indexes considered out of bounds, and indexes to track


mrajeev08/simrabid documentation built on May 7, 2021, 11:47 a.m.