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