Construct an object of class
conveniently than by
pedigree(sire, dam, label)
- numeric vector (with some
NAentries) of integer IDs, denoting a previous entry in the pedigree corresponding to the current entry's
- similarly as
motherof each entry.
- a vector coercable to
"character"of the same length as
damgiving a unique ID for the corresponding entry.
- an object of formal class
example("pedigree-class") ## 'p1' pedigree object `the hard way' ped <- pedigree(sire = c(NA,NA,1, 1,4,5), dam = c(NA,NA,2,NA,3,2), label= 1:6) ## note that 'label' is coerced to character automatically ped stopifnot(identical(ped, p1))
Looks like there are no examples yet.