View source: R/Methods-LandsepiParams.R
setReproSexProb | R Documentation |
set the probabilities for an infectious host to reproduce via sex rather than via cloning at every time step.
setReproSexProb(params, vec)
params |
a LandsepiParams object |
vec |
a vector of size TimeParam$nTSpY +1 (season end) with the probabilities for an infectious host to reproduce via sex rather than via cloning at each time step. |
a LandsepiParams object updated
## Not run:
simul_params <- createSimulParams()
simul_params <- setTime(simul_params, Nyears=10, nTSpY=120)
repro_sex_probs <- c(rep(0.0, 120), 1.0)
simul_params <- setReproSexProb(simul_params, repro_sex_probs)
simul_params@ReproSexProb
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.