extend_simulation: Continue a Previously Initiated Simulation

Description Usage Arguments Value

Description

Run a previously initiated popluation for more generations.

Usage

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, ...)

Arguments

sim

The previous simulation object.

population

A population object, the initial state (t=0) of the population.

demography

A demography object, containing the below parameters.

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 population, if present.

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 summary.times.

...

Additional parameters that will be passed to generation().

Value

A simulation object, as simulation. If summary functions are not the same, the initial ones are removed.


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.