get.descendants function

get descendants

get descendants

get the names of the tips of descendants given a tree and the name of an internal node.

get.descendants(tree, nodename)

Arguments

  • tree: Required. A phylo4 object.
  • nodename: Required. A character corresponding to an internal node.

Returns

a character vector of descendant names

Examples

birdfile <- system.file("treedata/birdfamilies.tree", package="phylocanvas") tree <- load.tree(birdfile) node <- phylobase::MRCA(tree, c("Cerylidae", "Upupidae")) get.descendants(tree, node)
  • Maintainer: zachary charlop-powers
  • License: MIT + file LICENSE
  • Last published: 2017-10-30