powered by
It loads a vectorised diagonal matrix to simulate no host dispersal.
loadDispersalHost(params, type = "no")
a LandsepiParams Object.
a character string specifying the type of dispersal ("no" for no dispersal)
a vectorised dispersal matrix.
as the size of the matrix depends on the number of fields in the landscape, the landscape must be defined before calling loadDispersalHost.
loadDispersalHost
setDispersalHost
# NOT RUN { simul_params <- createSimulParams() simul_params <- setLandscape(simul_params, loadLandscape(1)) d <- loadDispersalHost(simul_params) d # }
Run the code above in your browser using DataLab