getGenAncestors {pedigreeTools} | R Documentation |
Counts number of generations of ancestors for one subject. Use recursion.
getGenAncestors(pede, id, ngen = NULL)
pede |
data frame with a pedigree and a column for the number of generations of each subject. |
id |
subject for which we want the number of generations. |
ngen |
number of generation |
a data frame object with the pedigree and generation of ancestors for subject id.