Learn R Programming

pedigreeTools (version 0.2)

pedigree: 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)

Value

an pedigree object of class pedigree

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

Examples

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

Run the code above in your browser using DataLab