Learn R Programming

sequoia (version 2.11.1)

GetAncestors: Get ancestors

Description

get all ancestors of an individual

Usage

GetAncestors(id, Pedigree)

Value

a list with as first element id, second parents, third grandparents, etc.. Each element is a vector with ids, the first three elements are named, the rest numbered. Ancestors are unsorted within each list element.

Arguments

id

id of the individual

Pedigree

dataframe with columns id - parent1 - parent2; only the first 3 columns will be used.

Examples

Run this code
Anc_i200  <- GetAncestors('i200_2010_F', Ped_griffin)


Run the code above in your browser using DataLab