Learn R Programming

rphast (version 1.6.9)

numnodes.tree: Number of Nodes in a Tree

Description

Get the number of nodes in a tree

Usage

numnodes.tree(tree)

Arguments

tree

A vector of character strings, each containing a newick tree

Value

A numeric vector containing the number of nodes in each tree

Examples

Run this code
# NOT RUN {
numnodes.tree(c("((hg18:0.142679,(mm9:0.083220,rn4:0.090564):0.269385):
                0.020666,canFam2:0.193569);",
                "(human, (mouse, rat));"))
   
# }

Run the code above in your browser using DataLab