pedigree

0th

Percentile

Pedigree Constructor

Construct an object of class "pedigree", more conveniently than by new("pedigree", ....).

Keywords
misc
Usage
pedigree(sire, dam, label)
Arguments
sire
numeric vector (with some NA entries) of integer IDs, denoting a previous entry in the pedigree corresponding to the current entry's father.
dam
similarly as sire for the mother of each entry.
label
a vector coercable to "character" of the same length as sire and dam giving a unique ID for the corresponding entry.
Value

  • an object of formal class "pedigree".

See Also

the pedigree class.

Aliases
  • pedigree
Examples
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))
Documentation reproduced from package lme4, version 0.99875-2, License: GPL version 2 or later

Community examples

Looks like there are no examples yet.