Learn R Programming

pedSimulate (version 1.4.0)

hs_mate_finder: Find halfsib mates

Description

Find halfsib matings in the pedigree

Usage

hs_mate_finder(ped)

Value

hs_mates : A data.frame with two columns (SIRE, DAM) representing halfsib mates.

Arguments

ped

: A pedigree data.frame. The first three columns (ID, SIRE, DAM) are used.

Examples

Run this code
ped = data.frame(ID=1:7, SIRE=c(0,0,1,1,0,3,5), DAM=c(0,0,2,2,2,4,4))
hs_mate_finder(ped)

Run the code above in your browser using DataLab