Learn R Programming

landsepi (version 1.2.5)

loadDispersalPathogen: Load pathogen dispersal matrices

Description

It loads one of the five built-in vectorised dispersal matrices of rust fungi associated with the five built-in landscapes. Landscape and DispersalPathogen ID must be the same. And set a vectorized identity matrix for sexual reproduction dispersal.

Usage

loadDispersalPathogen(id = 1)

Value

a vectorised dispersal matrix representing the dispersal of clonal propagules, and a vectorised dispersal identity matrix for sexual propagules. All by columns.

Arguments

id

a matrix ID between 1 to 5 (must match the ID of the landscape loaded with loadLandscape).

Details

landsepi includes built-in dispersal matrices to represent rust dispersal in the five built-in landscapes. These have been computed from a power-law dispersal kernel: \( g(d) = ((b-2)*(b-1) / (2*pi*a^2)) * (1 + d/a)^{-b} \) with a=40 the scale parameter and b=7 a parameter related to the width of the dispersal kernel. The expected mean dispersal distance is given by \( 2*a /(b-3) = 20 m \).

See Also

dispP, setDispersalPathogen

Examples

Run this code
d <- loadDispersalPathogen(1)
d

Run the code above in your browser using DataLab