Individuals with the same haplotype will be in the same group and individuals with different haplotypes will be in different groups.

split_by_haplotypes(population, pids)

Arguments

population

Population obtained from simulation

pids

Vector of individual pids

Value

List of integer vector, element i is an IntegerVector with all pids from pids with the same haplotype