pedigree {pedigreeTools} | R Documentation |
A simple constructor for a pedigree object. The main point for the constructor is to use coercions to make the calls easier.
pedigree(sire, dam, label)
sire |
integer vector or factor representation of the sires |
dam |
integer vector or factor representation of the dams |
label |
character vector of labels |
an pedigree object of class pedigree
sire
, dam
and label
must all have the
same length and all labels in sire
and dam
must occur
in label
ped <- pedigree(sire=c(NA,NA,1,1,4,5), dam=c(NA,NA,2,NA,3,2), label=1:6)