R: Write Newick Tree

NewickTree {TreeTools} | R Documentation

## Write Newick Tree

### Description

`NewickTree()` encodes a tree as a Newick-format string. This differs from `write.tree()` in the encoding of spaces as spaces, rather than underscores.

### Usage

    NewickTree(tree)

### Arguments

`tree` | A tree of class `phylo`.

### Value

`NewickTree()` returns a character string denoting `tree` in Newick format.

### See Also

Use tip numbers, rather than leaf labels: `as.Newick`

### Examples

    NewickTree(BalancedTree(LETTERS[4:9]))

[Package TreeTools version 1.5.1 Index]