numped: Number a pedigree

View source: R/numped.R

numpedR Documentation

Number a pedigree

Description

numped function generates integer IDs for Ind, Sire and Dam IDs in the pedigree.

Usage

numped(ped)

Arguments

ped

A data.table or data frame including the pedigree, in which the names of the first three columns are Ind, Sire and Dam. Missing parent has been replaced with the default missing value NA.

Details

This function takes a pedigree, assigns individual IDs to continuous integers 1...n.

Value

A data.table including the new integer columns (IndNum, SireNum and DamNum) in the pedigree.


luansheng/visPedigree documentation built on Feb. 4, 2023, 11:10 p.m.