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