w_grandoffspring {purgeR}R 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)

[Package purgeR version 1.8.2 Index]