checkPed: Checks for errors and conformities in a pedigree file

Description Usage Arguments Examples

Description

This function checks for common errors in genealogical structured data

Usage

1
2
checkPed(pedigree, id = 1, sire = 2, dam = 3, rmsingle = FALSE,
  verbose = FALSE)

Arguments

pedigree

a data.frame with three columns: id, sire and dam

id

integer containning the column where animal ids are located in the pedigree

sire

integer containning the column where sire ids are located in the pedigree

dam

integer containning the column where dam ids are located in the pedigree

Examples

1
2
3
4
5
id = c(1,2,3,4,5,6,7,8,9,10)
sire = c(0,0,1,1,3,5,5,5,7,7)
dam = c(0,0,2,2,2,4,4,6,6,8)
ped = as.data.frame(cbind(id,sire,dam))
checkPed(ped)

BrnCPrz/PedyR documentation built on May 6, 2019, 8:47 a.m.