Learn R Programming

landsepi (version 1.1.2)

loadDispersalPathogen: Load a pathogen dispersal matrix

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.

Usage

loadDispersalPathogen(id = 1)

Value

a vectorised dispersal matrix.

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