allGens function

allGens A function to calculate the number of individuals in each generation. This is a supporting function for simulatePedigree.