powered by
Count siblings of each individual
countSiblings(ped, personID = "ID", momID = "momID", dadID = "dadID")
A data frame with an additional column, siblings, that contains the number of siblings for each individual
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
library(BGmisc) data("potter") countSiblings(potter, personID = "personID")
Run the code above in your browser using DataLab