Learn R Programming

landsepi (version 1.1.2)

setDispersalPathogen: Set pathogen dispersal

Description

Updates a LandsepiParams object with a pathogen dispersal matrix.

Usage

setDispersalPathogen(params, mat)

Value

a LandsepiParam object.

Arguments

params

a LandsepiParams Object.

mat

a square matrix giving the probability of pathogen dispersal from any field of the landscape to any other field. It can be generated manually, or, alternatively, via loadDispersalPathogen. The size of the matrix must match the number of fields in the landscape, and lines of the matrix must sum to 1.

Details

See tutorial (vignettes) on how to use your own landscape and compute your own pathogen dispersal kernel. The disersal matrix a square matrix whose size is the number of fields in the landscape and whose elements are, for each line i and each column i' the probability that propagules migrate from field i to field i'.

See Also

loadDispersalPathogen

Examples

Run this code
if (FALSE) {
simul_params <- createSimulParams()
simul_params <- setLandscape(simul_params, loadLandscape(1))
d <- loadDispersalPathogen(1)
simul_params <- setDispersalPathogen(simul_params, d)
simul_params@DispPatho
}

Run the code above in your browser using DataLab