Majority() is a simple alias of TreeTools::Consensus(), which computes
the majority-rule consensus: the tree that contains each split that occurs in
more than p of the input trees (Margush and McMorris 1981)
.
Value
Majority() returns an object of class phylo denoting the
majority rule consensus, rooted as in the first entry of trees.
References
Margush T, McMorris FR (1981). “Consensus n-trees.” Bulletin of Mathematical Biology, 43(2), 239–244. doi:10.1007/BF02459446 .
See also
Other consensus methods:
Adams(),
Average(),
Frequency(),
Greedy(),
Local(),
Loose(),
MajorityPlus(),
Quartet(),
RStar(),
Strict(),
Transfer()
Examples
trees <- ape::as.phylo(0:5, 8)
Majority(trees, p = 0.6)
#>
#> Phylogenetic tree with 8 tips and 5 internal nodes.
#>
#> Tip labels:
#> t1, t2, t3, t4, t5, t6, ...
#>
#> Rooted; no branch length.