errors.ped {pedigree} | R Documentation |
Function errors.ped
checks for errors in a pedigree and finds double coded
parents: non-founders that are both dam and sire. Returns true or
false, and you should remove errors yourself.
errors.ped(ped)
ped |
data.frame with three columns: id,id parent1,id parent2 |
Logical
TRUE if no errors, FALSE if errors exist in the pedigree
ID <- 1:5 DAM <- c(0,0,1,1,3) SIRE <- c(0,0,1,2,3) pedigree <- data.frame(ID,DAM,SIRE) errors.ped(pedigree)