View source: R/Methods-LandsepiParams.R
setDispersalHost | R Documentation |
Updates a LandsepiParams object with a host dispersal matrix.
setDispersalHost(params, mat)
params |
a LandsepiParams Object. |
mat |
a square matrix giving the probability of host dispersal
from any field of the landscape to any other field.
It can be generated manually, or, alternatively, via |
the dispersal matrix gives the probability for a host individual in a field i (row) to migrate to field j (column) through dispersal. If the host is a cultivated plant: seeds are harvested and do not disperse. Thus the dispersal matrix is the identity matrix.
a LandsepiParam object.
loadDispersalHost
## Not run:
simul_params <- createSimulParams()
simul_params <- setLandscape(simul_params, loadLandscape(1))
d <- loadDispersalHost(simul_params)
simul_params <- setDispersalHost(simul_params, d)
simul_params@DispHost
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.