powered by
calculate the total nr of possible haplotype combinations
totHapcombCount(ploidy, nmrk)
a vector of 1 or more ploidy levels
a vector of 1 or more numbers of markers per haploblock
a vector with the number of possible haplotype combinations for each pair of ploidy and nmrk values
nmrk is used to calculate the total number of possible haplotypes = 2^nmrk. The shorter vector of ploidy and nmrk is recycled.
# NOT RUN { totHapcombCount(ploidy=4, nmrk=c(1:8)) # }
Run the code above in your browser using DataLab