powered by
Counts the number of grandoffspring for individuals in the pedigree.
w_grandoffspring(ped, name_to)
The input dataframe, plus an additional column indicating the total number of grandoffspring.
A dataframe containing the pedigree. Individual (id), maternal (dam), and paternal (sire) identities are mandatory columns.
A string naming the new output column.
data(arrui) dama <- w_grandoffspring(arrui, name_to = "G") head(arrui)
Run the code above in your browser using DataLab