loadDispersalHost: Load a host dispersal matrix

View source: R/Methods-LandsepiParams.R

loadDispersalHostR Documentation

Load a host dispersal matrix

Description

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

Usage

loadDispersalHost(params, type = "no")

Arguments

params

a LandsepiParams Object.

type

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

Details

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

Value

a vectorised dispersal matrix.

See Also

setDispersalHost

Examples

## Not run: 
simul_params <- createSimulParams()
simul_params <- setLandscape(simul_params, loadLandscape(1))
d <- loadDispersalHost(simul_params)
d

## End(Not run)

landsepi documentation built on July 26, 2023, 5:36 p.m.