countOffspring {ggpedigree} | R Documentation |
Count offspring of each individual
Description
Count offspring of each individual
Usage
countOffspring(ped, personID = "ID", momID = "momID", dadID = "dadID")
Arguments
ped |
A data frame containing the pedigree information |
personID |
character. Name of the column in ped for the person ID variable |
momID |
character. Name of the column in ped for the mother ID variable |
dadID |
character. Name of the column in ped for the father ID variable |
Value
A data frame with an additional column, offspring, that contains the number of offspring for each individual
Examples
library(BGmisc)
data("potter")
countOffspring(potter,
personID = "personID",
momID = "momID", dadID = "dadID"
)
[Package ggpedigree version 0.8.0 Index]