View source: R/describeHelpers.R
countSiblings | R Documentation |
Count siblings of each individual
countSiblings(ped, personID = "ID", momID = "momID", dadID = "dadID")
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 |
A data frame with an additional column, siblings, that contains the number of siblings for each individual
library(BGmisc)
data("potter")
countSiblings(potter, personID = "personID")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.