ped2DF: Convert a pedigree to a data frame

View source: R/pedigree.R

ped2DFR Documentation

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)

Arguments

x

pedigree

Value

a data frame

Examples

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

pedigreeTools documentation built on Oct. 12, 2024, 9:07 a.m.