perm.hap(haplotypes, preplist, generation.id)Preparation.hap.permgeneration.id=0),
a child from first generation (generation.id=1), a
child from second generation (generation.id=2), etc.
This vector can be calculated by the
kinship2::kindepth() function.