errors.ped {pedigree}R Documentation

Function to check for errors in a pedigree data.frame

Description

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.

Usage

errors.ped(ped)

Arguments

ped data.frame with three columns: id,id parent1,id parent2

Value

Logical TRUE if no errors, FALSE if errors exist in the pedigree

See Also

add.Inds

Examples

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)

[Package pedigree version 1.1 Index]