powered by
Express a pedigree as a data frame with sire and dam stored as factors. If the pedigree is an object of class pedinbred then the inbreeding coefficients are appended as the variable F
sire
dam
F
ped2DF(x)
a data frame
pedigree
ped <- pedigree(sire = c(NA, NA, 1, 1, 4, 5), dam = c(NA, NA, 2, NA, 3, 2), label = 1:6) ped2DF(ped)
Run the code above in your browser using DataLab