rtMoveReflect: movement to cells NESW, reflecting boundaries

Description Usage Arguments Value

Description

rtMoveReflect moves proportion of popn in each cell to the 4 neighbouring cells. Movers are divided equally between the 4 cardinal neighbours. Boundaries are reflecting. This function works on a single age class, it can be made to work on multiple age classes by passing an array[y,x,age] to aaply(.margins=3) Doesn't try to cope with nrow or ncol==1.

Usage

1
rtMoveReflect(m, pMove = 0.4, verbose = FALSE)

Arguments

m

a matrix of cells containing a single number representing one age

pMove

proportion of popn that moves out of the cell.

verbose

print what it's doing T/F

Value

an updated matrix following movement


AndySouth/rtsetse documentation built on May 5, 2019, 6:02 a.m.