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)

Rpedigree/pedigreeR documentation built on Oct. 13, 2023, 7:35 p.m.