Collapse a matrix of haplotypes to genotypes
Haps2Genotypes.RdCollapse a matrix of haplotypes to genotypes
Arguments
- haps
 a vector or
pxNmatrix of 1s and 0s forNhaplotypes observed atploci- ploidy
 the ploidy of the underlying organisms, haplotypes corresponding to the same organism are assumed to be stored consecutively in
haps. Default = 2 (diploid)- method
 a character in "additive", "recessive", or "dominant" giving the model of inheritance that should be tested, default = "additive"