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