Rdocumentation
powered by
Learn R Programming
nadiv (version 2.9)
genAssign: Generation assignment
Description
Given a pedigree, the function assigns the generation number each individual belongs in.
Usage
genAssign(pedigree)
Arguments
pedigree
A pedigree with columns organized: ID, Dam, Sire
Value
A vector of values is returned. This vector is in the same order as the ID column of the pedigree.
Details
Zero is the base population.
Adapted from
kindepth
function in
kinship
See Also
kinship