Description Usage Arguments Value
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.
1 | rtMoveReflect(m, pMove = 0.4, verbose = FALSE)
|
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 |
an updated matrix following movement
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.