restart_experiment | R Documentation |
Note for most of this function's arguments, their default value is NULL
,
which results in them being the same as for the original simulations.
The exceptions to this are the arguments sims_obj
, new_starts
,
stage_ts_out
, max_t
, save_every
, perturb
, and no_warns
.
Arguments sims_obj
, new_starts
, and stage_ts_out
are new to this
function (see their documentation below for details).
Arguments max_t
and save_every
are set to 250
and 1
, respectively,
which results in a shorter time series with greater resolution, the typical
use case for this function.
Argument perturb
has a default value of NULL
which results in no
perturbations.
You can input a new data frame if you want to perturb these restarted
experiments.
If the initial simulations had perturbations but the new one won't,
this function will provide a warning indicating this.
You can suppress this warning by setting no_warns = TRUE
.
restart_experiment(
sims_obj,
new_starts = NULL,
stage_ts_out = FALSE,
max_t = 250,
save_every = 1,
alate_field_disp_p = NULL,
K = NULL,
alate_b0 = NULL,
alate_b1 = NULL,
K_y_mult = NULL,
s_y = NULL,
a = NULL,
k = NULL,
h = NULL,
wasp_disp_m0 = NULL,
wasp_disp_m1 = NULL,
wasp_field_attract = NULL,
mum_smooth = NULL,
pred_rate = NULL,
sep_adults = NULL,
show_progress = NULL,
perturb = NULL,
no_warns = FALSE
)
sims_obj |
A |
new_starts |
A dataframe or list of dataframes indicating the
new starting abundances for all populations (wasps, mummies,
all aphid lines) and stages.
It should be the exact same format as what's in |
stage_ts_out |
Single logical for whether to output stage-structured
information for all time points.
If |
max_t |
How many days to simulate. Defaults to |
save_every |
Abundances will be stored every |
alate_field_disp_p |
Proportion of alates from each field that
are added to the dispersal pool.
After adding alates to the pool, they are then evenly distributed
to all fields.
This happens only on days indicated by |
K |
Aphid density dependence.
Defaults to |
alate_b0 |
The proportion of offspring from apterous aphids is
|
alate_b1 |
The proportion of offspring from apterous aphids is
|
K_y_mult |
The number multiplied by |
s_y |
Daily survival rate of adult wasps.
Defaults to |
a |
Parasitoid attack rate. Defaults to the internal object
|
k |
Aggregation parameter of the negative binomial distribution.
Defaults to the internal object |
h |
Parasitoid handling time. Defaults to the internal object
|
wasp_disp_m0 |
Proportion of adult wasps from each field that
are added to the dispersal pool when there are no aphids present.
After adding wasps to the pool, they are then evenly distributed
to all fields.
This happens only on days indicated by |
wasp_disp_m1 |
Effect of aphid density on wasp emigration from a patch.
Emigration is |
wasp_field_attract |
Relatively attractiveness of fields to wasps.
This affects the proportion of wasps that immigrate from the dispersal
pool to each field.
It doesn't change the number of wasps that leave fields.
This can be a single numeric or a numeric vector of length |
mum_smooth |
Proportion of mummies that will NOT take exactly 3 days
to develop. As this value approaches 2/3, it will provide greater
smoothing of wasp numbers through time.
Defaults to |
pred_rate |
Daily predation rate on aphids and mummies.
Defaults to |
show_progress |
Boolean for whether to show progress bar.
Defaults to |
perturb |
Information for perturbing populations in the simulations.
It should be a dataframe with 4 columns:
* |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.