50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

landsepi (version 1.5.1)

setDispersalHost: Set host dispersal

Description

Updates a LandsepiParams object with a host dispersal matrix. Note that landscape parameters must be set before updating setting dispersal.

Usage

setDispersalHost(params, mat)

Value

a LandsepiParam object.

Arguments

params

a LandsepiParams Object.

mat

a square matrix giving the probability of host dispersal from any polygon of the landscape to any other polygon. It can be generated manually, or, alternatively, via loadDispersalHost. The size of the matrix must match the number of polygons in the landscape.

Details

the dispersal matrix gives the probability for a host individual in a polygon i (row) to migrate to polygon 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.

See Also

loadDispersalHost

Examples

Run this code
if (FALSE) {
simul_params <- createSimulParams()
simul_params <- setLandscape(simul_params, loadLandscape(1))
d <- loadDispersalHost(simul_params)
simul_params <- setDispersalHost(simul_params, d)
simul_params@DispHost
}

Run the code above in your browser using DataLab