R: Generate a balanced tree

blncdTree {treeman} | R Documentation

## Generate a balanced tree

### Description

Returns a balanced `TreeMan` tree with `n` tips.

### Usage

    blncdTree(n, wndmtrx = FALSE, parallel = FALSE)

### Arguments

`n` | number of tips, integer, must be 3 or greater
`wndmtrx` | T/F add node matrix? Default FALSE.
`parallel` | T/F run in parallel? Default FALSE.

### Details

Equivalent to `ape`'s `stree(type='balanced')` but returns a `TreeMan` tree. Tree is always rooted and bifurcating.

### See Also

`TreeMan-class`, `randTree`, `unblncdTree`

### Examples

    library(treeman)
    tree <- blncdTree(5)

[Package treeman version 1.1.4 Index]