Learn R Programming

BioGeoBEARS (version 0.2.1)

get_nodenum_structural_root: Gets the root node

Description

This function gets the root node by finding the node not in the descendants list (edge[,2]). This may be more reliable than e.g. assuming length(tr$tip.label)+1.

Usage

get_nodenum_structural_root(t, print_nodenum = FALSE)

Arguments

t
A tree object in phylo format.
print_nodenum
Print the node numbers as you go through the list? Default FALSE.

Value

root_nodenums_list

References

http://phylo.wikidot.com/matzke-2013-international-biogeography-society-poster

Matzke_2012_IBS

See Also

phylo, get_nodenums

Examples

Run this code
blah=1

Run the code above in your browser using DataLab