Inserts Founders into a Pedigree

Share:

Description

Inserts Founders into a Pedigree

Usage

1
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

1
2
3
4
5
6
7
8
9
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.