Description Usage Arguments Value
Run a previously initiated popluation for more generations.
1 2 3 | extend_simulation(sim, population, demography, times, append = TRUE,
N = sim$N[, , dim(sim$N)[3]], tinit = sim$t + 1, summary.times = (sim$t
+ 1):max(times), summaries = NULL, ...)
|
sim |
The previous |
population |
A |
demography |
A |
times |
A sorted integer vector of times to record the full state of the population at. |
append |
If TRUE, append results to results in previous simulation object. |
N |
Overrides the matrix of genotype counts in |
tinit |
The current time at the beginning of the simulation (defaults to t=0). |
summary.times |
A sorted integer vector of times to record summaries of the population at. |
summaries |
A list of functions to apply to the matrix of genotype counts, population$N, at generations |
... |
Additional parameters that will be passed to |
A simulation object, as simulation
.
If summary functions are not the same, the initial ones are removed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.