get_nodenum_structural_root: Gets the root node

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/BioGeoBEARS_readwrite_v1.R

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

1
  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

Note

Go BEARS!

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

References

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

Matzke_2012_IBS

See Also

phylo, get_nodenums

Examples

1
blah=1

BioGeoBEARS documentation built on May 29, 2017, 8:36 p.m.