powered by
Extract sire-maternal grandsire (S-MGS) pedigree from a sire-dam pedigree. Sire and MGS information is extracted for sires of phenotyped individuals.
smgsped(ped, pheno)
: data.frame with integer columns corresponding to ID, SIRE, DAM. Missing value is 0.
data.frame
: Vector of phenotyped individuals
S-MGS pedigree data.frame
# NOT RUN { 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) # }
Run the code above in your browser using DataLab