Description Usage Arguments Value
View source: R/insecticide_switch.r
only gets called if insecticide_check() has already identified that the previous insecticide needed to be changed. Checks that the new insecticide is below resistance or survival thresholds.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | insecticide_switch(
RAF,
current_insecticide,
n_insecticides,
threshold,
mort_or_freq,
gen,
min_gens_switch_back,
df_ins,
df_results,
diagnostics,
eff,
dom_sel,
rr
)
|
RAF |
array of resistance allele frequencies |
current_insecticide |
id number of current insecticide |
n_insecticides |
number of insecticides (and hence loci) |
threshold |
trigger for change of insecticide, either resistance frequency or mortality dependent on mort_or_freq, also precludes switch to an insecticide. |
mort_or_freq |
whether threshold for insecticide change is mortality 'mort' or resistance frequency 'freq' |
gen |
generation number |
min_gens_switch_back |
minimum num gens before can switch back to an insecticide |
df_ins |
number of generations since each insecticide used |
df_results |
results of sim so far |
diagnostics |
whether to output running info |
eff |
effectiveness, for all insecticides or individually |
dom_sel |
dominance of selection, for all insecticides or individually |
rr |
resistance restoration, for all insecticides or individually |
integer : insecticide number to switch to, if 0 none found
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.