getDescendants: Returns a list of the descendants of a particular variety (if...

Description Usage Arguments Examples

Description

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

Usage

1
getDescendants(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 descendants

Examples

1
2
3
4
data(sbTree)
getChild("Essex",sbTree)
getDescendants("Essex", sbTree, 1)
getDescendants("Essex", sbTree, 3)

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