numnodes.tree: Number of Nodes in a Tree

Description Usage Arguments Value Author(s) Examples

View source: R/trees.R

Description

Get the number of nodes in a tree

Usage

1

Arguments

tree

A vector of character strings, each containing a newick tree

Value

A numeric vector containing the number of nodes in each tree

Author(s)

Melissa J. Hubisz and Adam Siepel

Examples

1
2
3
4
numnodes.tree(c("((hg18:0.142679,(mm9:0.083220,rn4:0.090564):0.269385):
                0.020666,canFam2:0.193569);",
                "(human, (mouse, rat));"))
   

rphast documentation built on May 1, 2019, 9:26 p.m.