The function `prune()` calls for `countGen()` which does not exists in the package yet. Presumably this is also a function in `pedigree` and `countGen()` counts generation number of individuals in the family tree.