Description Usage Arguments Value
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.
1 | block_cells(rast, params = list(start_pop))
|
rast |
raster generated using |
params |
a list of params, in this case,
integer vector of the population size in each cell of |
indexes to block, indexes considered out of bounds, and indexes to track
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.