countGen {pedigree} | R Documentation |
Count generation number for each individual in a pedigree.
Description
Counts generation number for individuals in a pedigreee.
Usage
countGen(ped)
Arguments
ped |
|
Value
Numeric vector
Examples
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))
[Package pedigree version 1.4.2 Index]