w_grandoffspring: Grandoffspring

View source: R/fitness.R

w_grandoffspringR Documentation

Grandoffspring

Description

Counts the number of grandoffspring for individuals in the pedigree.

Usage

w_grandoffspring(ped, name_to)

Arguments

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.

Value

The input dataframe, plus an additional column indicating the total number of grandoffspring.

Examples

data(arrui)
dama <- w_grandoffspring(arrui, name_to = "G")
head(arrui)

purgeR documentation built on Aug. 16, 2023, 9:07 a.m.