getPath | R Documentation |
Return node ids for connecting from
to to
.
getPath(tree, from, to)
tree |
|
from |
starting node id |
to |
ending node id |
Returns a vector, first id is from
to to
.
https://github.com/DomBennett/treeman/wiki/get-methods
data(mammals)
# what's the phylogenetic distance from humans to gorillas?
ape_id <- getPrnt(mammals, ids = c("Homo_sapiens", "Hylobates_concolor"))
pth <- getPath(mammals, from = "Homo_sapiens", to = "Gorilla_gorilla")
sum(getNdsSlt(mammals, ids = pth, slt_nm = "spn"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.