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