Learn R Programming

purgeR (version 1.8.2)

w_grandoffspring: Grandoffspring

Description

Counts the number of grandoffspring for individuals in the pedigree.

Usage

w_grandoffspring(ped, name_to)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab