Description Usage Arguments Value
Given a collection of lineages, all of the same genotype, sample from their location in the previous generation, given the entire set of reproductive numbers in that generation.
1 | lineage_generation(lineages, N, gen, num.alleles, demog, debug = FALSE)
|
lineages |
A two-column matrix with columns labeled 'location' and 'genotype'. |
N |
The population state at the start of the previous generation. |
gen |
A list as returned by |
num.alleles |
A vector giving the number of alleles of the type followed in each genotype. |
demog |
The demography object that contains migration matrices used to make the simulation. |
debug |
Whether to run sanity checks. |
A matrix of the same form as lineages
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.