insertPed: Inserts Founders into a Pedigree

View source: R/insertPed.R

insertPedR Documentation

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

Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

MCMCped

Examples

## 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)

## End(Not run)

MasterBayes documentation built on June 22, 2022, 5:06 p.m.