Learn R Programming

ggenealogy (version 0.2.0)

buildAncList: Returns the ancestors of a particular variety (if they exist).

Description

This function returns a nested list of the ancestors of the inputted variety.

Usage

buildAncList(v1, geneal, gen = 0)

Arguments

v1
the label of the variety/vertex of interest (in character string format)
geneal
the full genealogy (in data frame format)
gen
the generation (note: This should be left as default, as any other input will not affect results anyway)

See Also

getParent for information on determining parents

Examples

Run this code
data(sbGeneal)
getParent("Essex", sbGeneal)
buildAncList("Essex", sbGeneal)

Run the code above in your browser using DataLab