countSiblings {ggpedigree} | R Documentation |
Count siblings of each individual
Description
Count siblings of each individual
Usage
countSiblings(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, siblings, that contains the number of siblings for each individual
Examples
library(BGmisc)
data("potter")
countSiblings(potter, personID = "personID")
[Package ggpedigree version 0.8.0 Index]