Description Usage Arguments Value Examples
View source: R/chooseAlleles.R
Combines two vectors of alleles by randomly selecting one allele or the other at each position.
1 | chooseAlleles(a1, a2)
|
a1 |
integer vector with first allele for each individual |
a2 |
integer vector with second allele for each individual
|
An integer vector with the result of sampling from a1
and a2
according to Mendelian inheritance.
1 | chooseAlleles(0:4, 5:9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.