powered by
Combines two vectors of alleles by randomly selecting one allele or the other at each position.
chooseAlleles(a1, a2)
integer vector with first allele for each individual
integer vector with second allele for each individual a1 and a2 are equal length vectors of alleles for one individual
a1
a2
An integer vector with the result of sampling from a1 and a2 according to Mendelian inheritance.
# NOT RUN { chooseAlleles(0:4, 5:9) # } # NOT RUN { # }
Run the code above in your browser using DataLab