R/getTips.r

Defines functions getTips

Documented in getTips

#' List all tips descendant from a node
#'
#' @param tree an object of class 'phylo'.
#' @param node number of interest.
#' @return vector of tip numbers.

#' @export

getTips<-function(tree,node){
getDescendants(tree,node)[which(getDescendants(tree,node)<(length(tree$tip.label)+1))]
                   }
JeroenSmaers/evomap documentation built on May 7, 2019, 10:35 a.m.