updateBinList: Updates Bin list given a split group

View source: R/updateBinList.R

updateBinListR Documentation

Updates Bin list given a split group

Description

Updates Bin list given a split group

Usage

updateBinList(binList, grp)

Arguments

binList

List of bins

grp

Group indicating the split of an bin

Examples

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)

reptalex/phylofactor documentation built on Feb. 28, 2024, 3:19 p.m.