countOff {pedigree}R 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)

[Package pedigree version 1.4.2 Index]