Learn R Programming

pedigreeTools (version 0.2)

ped2DF: Convert a pedigree to a data frame

Description

Express a pedigree as a data frame with sire and dam stored as factors. If the pedigree is an object of class pedinbred then the inbreeding coefficients are appended as the variable F

Usage

ped2DF(x)

Value

a data frame

Arguments

x

pedigree

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)
ped2DF(ped)

Run the code above in your browser using DataLab