pedigree: Constructor for pedigree objects

Description Usage Arguments Value Note Examples

View source: R/pedigree.R

Description

A simple constructor for a pedigree object. The main point for the constructor is to use coercions to make the calls easier.

Usage

1
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 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

1
ped <- pedigree(sire=c(NA,NA,1,1,4,5), dam=c(NA,NA,2,NA,3,2), label=1:6)

pedigreeTools documentation built on May 2, 2019, 2:09 a.m.