smgsped: Sire-maternal grandsire (S-MGS) pedigree

View source: R/smgsped.R

smgspedR Documentation

Sire-maternal grandsire (S-MGS) pedigree

Description

Extract sire-maternal grandsire (S-MGS) pedigree from a sire-dam pedigree. Sire and MGS information is extracted for sires of phenotyped individuals.

Usage

smgsped(ped, pheno)

Arguments

ped

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

pheno

: Vector of phenotyped individuals

Value

S-MGS pedigree data.frame

Examples

ped = data.frame(ID=1:10, SIRE=c(0,0,1,2,0,5,4,4,0,8), DAM=c(0,0,0,3,3,0,6,6,6,0))
smgsped(ped, 7:10)


ggroups documentation built on March 28, 2022, 1:06 a.m.