Learn R Programming

landsepi (version 1.1.2)

initialize,LandsepiParams-method: LandsepiParams

Description

Creates and initialises a LandespiParams object with default parameters.

Usage

# S4 method for LandsepiParams
initialize(
  .Object,
  Landscape = st_sf(st_sfc()),
  Croptypes = data.frame(),
  Cultivars = data.frame(matrix(ncol = length(.cultivarsColNames), nrow = 0, dimnames =
    list(NULL, .cultivarsColNames))),
  CultivarsGenes = data.frame(),
  Genes = data.frame(matrix(ncol = length(.geneColNames), nrow = 0, dimnames =
    list(NULL, .geneColNames))),
  Pathogen = list(name = "no pathogen", survival_prob = 0, repro_sex_prob = 0,
    infection_rate = 0, propagule_prod_rate = 0, latent_period_exp = 0, latent_period_var
    = 0, infectious_period_exp = 0, infectious_period_var = 0, sigmoid_kappa = 0,
    sigmoid_sigma = 0, sigmoid_plateau = 1),
  PI0 = 0,
  DispHost = vector(),
  DispPatho = vector(),
  OutputDir = normalizePath(character(getwd())),
  OutputGPKG = "landsepi_landscape.gpkg",
  Outputs = list(epid_outputs = "", evol_outputs = "", thres_breakdown = NA, GLAnoDis =
    NA, audpc100S = NA),
  TimeParam = list(),
  Seed = NULL,
  ...
)

Arguments

.Object

a LandsepiParam object.

Landscape

a landscape as sf object.

Croptypes

a dataframe with three columns named 'croptypeID' for croptype index, 'cultivarID' for cultivar index and 'proportion' for the proportion of the cultivar within the croptype.

Cultivars

a dataframe of parameters associated with each host genotype (i.e. cultivars, lines) when cultivated in pure crops.

CultivarsGenes

a list containing, for each host genotype, the indices of carried resistance genes.

Genes

a data.frame of parameters associated with each resistance gene and with the evolution of each corresponding pathogenicity gene.

Pathogen

a list of pathogen aggressiveness parameters on a susceptible host for a pathogen genotype not adapted to resistance.

PI0

initial probability for the first host (whose index is 0) to be infectious (i.e. state I) at the beginning of the simulation. Must be between 0 and 1.

DispHost

a vectorized matrix giving the probability of host dispersal from any field of the landscape to any other field

DispPatho

a vectorized matrix giving the probability of pathogen dispersal from any field of the landscape to any other field.

OutputDir

the directory for simulation outputs

OutputGPKG

the name of the output GPKG file containing parameters of the deployment strategy

Outputs

a list of outputs parameters.

TimeParam

a list of time parameters.

Seed

an integer used as seed value (for random number generator).

...

more options