NewickTree() encodes a tree as a Newick-format string.
This differs from write.tree() in the encoding of
spaces as spaces, rather than underscores.
Arguments
- tree
A tree of class
phylo.
See also
Use tip numbers, rather than leaf labels: as.Newick
Examples
NewickTree(BalancedTree(LETTERS[4:9]))
#> [1] "(((D,E),F),((G,H),I));"