View source: R/updateBinList.R
updateBinList | R Documentation |
Updates Bin list given a split group
updateBinList(binList, grp)
binList |
List of bins |
grp |
Group indicating the split of an bin |
library(ape)
set.seed(6)
tree <- rtree(10)
Groups <- getPhyloGroups(tree)
treeList <- list(tree)
binList <- list(1:10)
factor <- 16
grp <- getLabelledGrp(factor,tree,Groups)
grp
treeList <- updateTreeList(treeList,binList,grp,tree)
binList <- updateBinList(binList,grp)
Groups <- getNewGroups(tree,treeList,binList)
factor=2
grp <- getLabelledGrp(factor,tree,Groups)
grp
unlist(grp)
tree$tip.label[unlist(grp)]
treeList <- updateTreeList(treeList,binList,grp,tree)
binList <- updateBinList(binList,grp)
Groups <- getNewGroups(tree,treeList,binList)
factor = 11
grp <- getLabelledGrp(factor,tree,Groups)
grp
unlist(grp)
tree$tip.label[unlist(grp)]
treeList <- updateTreeList(treeList,binList,grp,tree)
binList <- updateBinList(binList,grp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.