countGen {pedigree} | R Documentation |
Counts generation number for individuals in a pedigreee.
countGen(ped)
ped |
data.frame with three columns: id,id parent1,id parent2 |
Numeric vector
id <- 1:5 dam <- c(0,0,1,1,4) sire <- c(0,0,2,2,3) ped <- data.frame(id,dam,sire) (gens <- countGen(ped))