Rev 3175 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{pedigree}\alias{pedigree}\title{Pedigree Constructor}\description{Construct an object of class \code{"pedigree"}, moreconveniently than by \code{new("pedigree", ....)}.}\usage{pedigree(sire, dam, label)}\arguments{\item{sire}{numeric vector (with some \code{NA} entries) of integer IDs,denoting a \emph{previous} entry in the pedigree corresponding tothe current entry's \dQuote{father}.}\item{dam}{similarly as \code{sire} for the \dQuote{mother} of each entry.}\item{label}{a vector coercable to \code{"character"} of the samelength as \code{sire} and \code{dam} giving a unique ID for thecorresponding entry.}}\value{an object of formal class \code{"pedigree"}, see\code{\linkS4class{pedigree}}.}\seealso{\code{\linkS4class{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 automaticallypedstopifnot(identical(ped, p1))}\keyword{misc}