migrate | R Documentation |
A function for the migration of individuals between populations.
migrate(G1, G2, rate1to2, rate2to1)
G1 |
An object of class |
G2 |
An object of class |
rate1to2 |
A numerical value indicating the rate at which individuals in G1 migrate to G2 |
rate2to1 |
A numerical value indicating the rate at which individuals in G2 migrate to G1 |
The function is used internally in the function evolve() in order to allow the migration of individuals between populations. This function returns a list of two-dimensional arrays that represents a pair of homologous chromosomes. Rows represent individuals and columns the different loci. Each element of the array is an integer defining the copy of a given allele at a given locus.
A list of two objects of class "struct"
representing the new genetic structures of populations after migration.
evolve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.