order.ped {MasterBayes}R Documentation

Orders a Pedigree

Description

Orders a pedigree so parents come before offspring

Usage

order.ped(ped, time_born=NULL, ...)

Arguments

ped pedigree with id, dam and sire in ech column
time_born an optional vector of birth dates by which the pedigree can be ordered)
... further arguments to be passed

Value

an ordered pedigree pedigree with id, dam and sire in each column

Author(s)

Jarrod Hadfield j.hadfield@sheffield.ac.uk

See Also

MCMCped

Examples

pedigree<-matrix(NA, 8,3)
pedigree[,1]<-1:8
pedigree[,2][5:8]<-c(1,1,2,2)
pedigree[,3][5:8]<-c(3,3,4,4)

pedigree<-pedigree[sample(1:8),]

pedigree2<-order.ped(pedigree)

[Package MasterBayes version 2.0 Index]