View source: R/tips.expected.R
tips.expected | R Documentation |
Given a tree and a set of tips, this function determines the most recent
common ancestor (MRCA) of these tips and calculates how many tips are
expected to be in a clade with this MRCA. Requires the installation of
the package phangorn
.
tips.expected(tr, tips, value = FALSE, ...)
tr |
The tree, of class |
tips |
A vector of tip labels from which to calculate MRCA. |
value |
A boolean determining what the function returns. If |
... |
Arguments to be passed to the function |
The default for value is FALSE
.
out |
Either the number of expected descendents from the MRCA,
or a vector of tip labels of the expected descendents, depending on
the argument |
Andrew Hipp and Kasey Pham
Schliep K.P. 2011. phangorn: phylogenetic analysis in R. Bioinformatics, 27(4) 592-593. http://phangorn.org.
phangorn
, getMRCA
, Descendents
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.