treeman (version 1.1.3)

randTree: Generate a random tree

Description

Returns a random TreeMan tree with n tips.

Usage

randTree(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 rtree() but returns a TreeMan tree. Tree is always rooted and bifurcating.

See Also

TreeMan-class, blncdTree, unblncdTree

Examples

Run this code
# NOT RUN {
library(treeman)
tree <- randTree(5)
# }

Run the code above in your browser using DataCamp Workspace