countOff: Function that counts the number of offspring (and following...

View source: R/drivers.r

countOffR Documentation

Function that counts the number of offspring (and following generations for each individual in a pedigree.

Description

Function to count the number of offspring for each individual in a pedigree. With loops, offspring of later generations will be counted several times.

Usage

countOff(ped)

Arguments

ped

data.frame with three columns: id,id parent1,id parent2

Value

Numeric vector with number of offspring for each individual in the pedigree.

Author(s)

Albart Coster

Examples

example(countGen)
countOff(ped)

pedigree documentation built on Aug. 14, 2022, 1:06 a.m.