equalSubtrees: Split Phylogeny Equally

Description Usage Arguments Details Value See Also

View source: R/equalSubtrees.R

Description

Split a phylogenetic tree into two equally sized subtrees.

Usage

1
equalSubtrees(phy, k)

Arguments

phy

A phylogenetic tree of class phylo.

k

An integer, only trees with > k tips will be split.

Details

The phylogenetic tree is treated as unrooted, no matter whether is rooted or not.

Value

A list containing two subtrees of class phylo.

See Also

decomposePhyloRooted to decompose large phylogenetic trees into subsets of a certain size.


heibl/polenta documentation built on May 17, 2019, 3:22 p.m.