Skip to content
Dom Bennett edited this page Jun 13, 2017 · 3 revisions

A TreeMan object is made up a series of Node objects that are held in a node list or ndlst. A Node can be extracted from a tree using [[]]. Printing a node to console will display key statistics. This can make navigating a tree easy.

data(mammals)
mammals[['Homo_sapiens']]
Node (tip node):
  + ID: "Homo_sapiens"
  + txnym: "Homo"
  + prid: "n2939"
  + spn: 9.7
  + predist: 170
  + pd: 0

Statistics can be extracted from a node using [].

node <- mammals[['Homo_sapiens']]
node['span']

There are no methods associated with the Node class, the class exists for user interaction with the tree not programming.

Next page: TreeMan class

Clone this wiki locally