Description Usage Arguments Details Value
View source: R/chooseAllelesChar.R
Combines two vectors by randomly selecting one allele
or the other at each position. Alleles may be of any class that
does not require attributes as the vectors are combined with c()
.
1 | chooseAllelesChar(a1, a2)
|
a1 |
vector with first parent alleles for each individual |
a2 |
vector with second parent alleles for each individual
|
The current implementation is slower than the one using integer vectors
(chooseAlleles
).
An integer vector with the result of sampling from a1
and a2
according to Mendelian inheritance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.