getGenAncestors {pedigreeTools}R Documentation

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

Description

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

Usage

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.


[Package pedigreeTools version 0.1 Index]