It loads a vectorised diagonal matrix to simulate no host dispersal.

loadDispersalHost(params, type = "no")

Arguments

params

a LandsepiParams Object.

type

a character string specifying the type of dispersal ("no" for no dispersal)

Value

a vectorised dispersal matrix.

Details

as the size of the matrix depends on the number of polygons in the landscape, the landscape must be defined before calling loadDispersalHost.

See also

Examples

if (FALSE) {
simul_params <- createSimulParams()
simul_params <- setLandscape(simul_params, loadLandscape(1))
d <- loadDispersalHost(simul_params)
d
}