add.Inds: Function to add missing individuals to a pedigree

add.IndsR Documentation

Function to add missing individuals to a pedigree

Description

Function add.Inds() adds missing individuals to a pedigree and returns the complete pedigree as a data.frame with the same headers as the original pedigree. Remeber to check for errors beforehand with function errors.ped. Unknown parents should be coded as NA.

Usage

add.Inds(ped)

Arguments

ped

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

Value

data.frame of three columns with identical header as input.

Author(s)

Albart Coster, Albart.Coster@wur.nl

See Also

orderPed

Examples

ID <- 3:5
DAM <- c(1,1,3)
SIRE <- c(2,2,4)
pedigree <- data.frame(ID,DAM,SIRE)
pedigree <- add.Inds(pedigree)

pedigree documentation built on Aug. 14, 2022, 1:06 a.m.