renum {ggroups}R Documentation

Pedigree renumbering

Description

Renumbering pedigree to numerical IDs, so that progeny's ID is smaller than parents' IDs.

Usage

renum(ped)

Arguments

ped

: data.frame with columns corresponding to ID, SIRE, DAM. Missing value is 0.

Value

newped : Pedigree data.frame with renumberred IDs.

xrf : Cross-reference data.frame with 2 columns for original and renumberred IDs.

Examples

ped = data.frame(ID=letters[1:6], SIRE=c(0,0,letters[c(1,3,1,4)]), DAM=c(0,0,letters[c(2,2,2,5)]))
renum(ped)$newped
renum(ped)$xrf


[Package ggroups version 2.1.2 Index]