This function converts haplotypes simulated with scrm::scrm()
into
genotypes by adding the entries on one row with the entries of the subsequent
row.
hap2geno(haplo)
a matrix of genotypes with half the rows of the haplo
matrix. Each
column of this matrix is a different site and each row is a different
genotype.
a matrix of haplotypes obtained from the simulations done with
scrm::scrm()
. Each column of the matrix is a different site and each row
is a different haplotype.