powered by
Generate a spouselist matrix
generateSpouseList( ped, personID = "personID", momID = "momID", dadID = "dadID", spouseID = "spouseID" )
A spouselist matrix
A data frame containing the pedigree information
Character. Name of the column in ped for the person ID variable
Character. Name of the column in ped for the mother ID variable
Character. Name of the column in ped for the father ID variable
Character. Name of the column in ped for the spouse ID variable
library(BGmisc) data("potter") generateSpouseList(potter, personID = "personID", momID = "momID", dadID = "dadID", spouseID = "spouseID" )
Run the code above in your browser using DataLab