Learn R Programming

ggtree (version 1.4.11)

as.binary: as.binary

Description

as.binary method for phylo object

Usage

as.binary(tree, ...)
"as.binary"(tree, ...)

Arguments

tree
phylo, object
...
additional parameter

Value

binary tree

Examples

Run this code
require(ape)
tr <- read.tree(text="((A, B, C), D);")
is.binary.tree(tr)
tr2 <- as.binary(tr)
is.binary.tree(tr2)

Run the code above in your browser using DataLab