MasterBayes (version 2.55)

insertPed: Inserts Founders into a Pedigree

Description

Inserts Founders into a Pedigree

Usage

insertPed(ped, founders=NULL)

Arguments

ped

pedigree with id, dam and sire in ech column

founders

optional vector of founder id's. If not specified, then parents without their own pedigree row are inserted

Value

a pedigree pedigree with id, dam and sire in each column

See Also

MCMCped

Examples

Run this code
# NOT RUN {
pedigree<-matrix(NA, 7,3)
pedigree[,1]<-2:8
pedigree[,2][4:7]<-c(1,1,2,2)
pedigree[,3][4:7]<-c(3,3,4,4)

pedigree2<-insertPed(pedigree)
# }

Run the code above in your browser using DataLab