rtSetVegDifGrids: to return an array of grids used internally to represent...

Description Usage Arguments Details Value See Also

Description

Used to represent effect of vegetation differences between cells. Can be used to reduce movement into less preferred vegetation in rtMove.

Usage

1
2
rtSetVegDifGrids(mVegCats = array(c("O", "O", "O", "O", "S", "O", "O", "O",
  "O", "O", "O", "O"), dim = c(3, 4)), iBestVeg = 4, verbose = FALSE)

Arguments

mVegCats

a matrix of vegetation categories

iBestVeg

the index of the preferred vegetation for this species

verbose

print what it's doing T/F

Details

Returns an array of movement multiplier grids labelled N,S,E,W,SN,WE,NS,EW. Those labelled SN,WE,NS,EW are needed for calculating stayers for each cell they are the difference in preference with the 4 neighbours that act as sinks. They are calculated by going back the other way from the initial neighbour calculation. This is tricky because of the way it is coded to make it run faster.

Value

an array of movement multiplier grids labelled N,S,E,W,SN,WE,NS,EW

See Also

rtSetVegMoveGrids which sets up similar grids for influencing movement by the vegetation within a cell.
rtMove uses the grids created.

The movement vignette contains more details about how movement can be represented, type this in the R console : vignette("vignette-movement", package="rtsetse")


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