twoer: Generate a tree of two tips

Description Usage Arguments Details See Also Examples

View source: R/gen-methods.R

Description

Returns a TreeMan tree with two tips and a root.

Usage

1
twoer(tids = c("t1", "t2"), spns = c(1, 1), rid = "root", root_spn = 0)

Arguments

tids

tip IDs

spns

tip spans

rid

root ID

root_spn

root span

Details

Useful for building larger trees with addClade(). Note, a node matrix cannot be added to a tree of two tips.

See Also

TreeMan-class, randTree

Examples

1
2
library(treeman)
tree <- twoer()

treeman documentation built on July 8, 2020, 7:28 p.m.