Learn R Programming

pedigree (version 1.4)

add.Inds: 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.

See Also

orderPed

Examples

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

Run the code above in your browser using DataLab