getAncestors: Returns a list of the ancestors of a particular variety (if...

Description Usage Arguments Examples

Description

This function returns a list of the ancestors of the inputted variety within and including a given number of generations

Usage

1
getAncestors(v1, tree, gen = 3)

Arguments

v1

the label of the variety/vertex of interest (in character string format)

tree

the data tree (in data frame format)

gen

the number of generations back to include as ancestors

Examples

1
2
3
4
data(sbTree)
getParent("Essex", sbTree)
getAncestors("Essex", sbTree, 1)
getAncestors("Essex", sbTree, 5)

dicook/phyViz documentation built on May 15, 2019, 8:24 a.m.