Join us for
RADAR: AI Edition

BioGeoBEARS (version 0.2.1)

get_level: Get a node's level in the tree

Description

Finds how many nodes deep a node is.

Usage

get_level(nodenum, t, tmplevel = 0)

Arguments

nodenum
The node number to get the parent of
t
An ape phylo object
tmplevel
A starting level (the function is recursive)

Value

tmplevel The level of the node.

References

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

Matzke_2012_IBS

See Also

prt, chainsaw2

Examples

Run this code
test=1

Run the code above in your browser using DataLab