Nothing
#' allCladeMembers (internal function)
#'
#' This is an internal function to generate an allCladeMembersMatrix
#' @param phy phylogeny in ape phylo format
#' @return cladeMembersMatrix
#' @author Gavin Thomas
#' @export
allCladeMembers <- function(phy) {
nodeIDs <- c(1:Ntip(phy), (Ntip(phy)+2):(Ntip(phy) + Nnode(phy)))
k <- length(nodeIDs)
cladeMembersMatrix <- sapply(nodeIDs, function(k) {
nodeShiftID <- c(k, node.descendents(x = k , phy = phy))
as.numeric(phy$edge[, 2] %in% nodeShiftID)
}
)
return(cladeMembersMatrix)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.