getGenAncestors: Counts number of generations of ancestors for one subject....

Description Usage Arguments Value

View source: R/pedigree.R

Description

Counts number of generations of ancestors for one subject. Use recursion.

Usage

1
getGenAncestors(pede, id, ngen = NULL)

Arguments

pede

data frame with a pedigree and a column for the number of generations of each subject.

id

subject for which we want the number of generations.

ngen

number of generation

Value

a data frame object with the pedigree and generation of ancestors for subject id.


pedigreeTools documentation built on May 2, 2019, 2:09 a.m.