w_grandoffspring | R Documentation |
Counts the number of grandoffspring for individuals in the pedigree.
w_grandoffspring(ped, name_to)
ped |
A dataframe containing the pedigree. Individual (id), maternal (dam), and paternal (sire) identities are mandatory columns. |
name_to |
A string naming the new output column. |
The input dataframe, plus an additional column indicating the total number of grandoffspring.
data(arrui)
dama <- w_grandoffspring(arrui, name_to = "G")
head(arrui)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.