nrDesc | R Documentation |
Get the number of descendants for each node in the tree.
nrDesc(tree)
tree |
(phylo) a phylogenetic tree. |
(numeric)
Shubham Gupta, shubh.gupta@mail.utoronto.ca
Ntip, getNodeIDs
m <- matrix(c(0,1,2,3, 1,0,1.5,1.5, 2,1.5,0,1, 3,1.5,1,0), byrow = TRUE,
ncol = 4, dimnames = list(c("run1", "run2", "run3", "run4"),
c("run1", "run2", "run3", "run4")))
distMat <- as.dist(m, diag = FALSE, upper = FALSE)
## Not run:
tree <- getTree(distMat)
getNodeIDs(tree)
nrDesc(tree)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.