# Example using tree models and TSS included in this package:
getTSSdata(tss = c("Colless", "Sackin"), n = 5L, Ntrees = 3L,
tm = list("aldous", -1))
# Example using a "new" tree model and a "new" TSS provided by the user:
my_aldous <- list(func = function(n, Ntrees){
trees <- lapply(1:Ntrees,
function(x){genAldousBetaTree(n = n, BETA =5L)})
attr(trees, "class") <- "multiPhylo"
return(trees)})
my_avd <- list(func = treebalance::avgVertDep, short = "My AVD")
getTSSdata(tss = c("Colless", "my_avd"), n = 5L, Ntrees = 3L,
tm = "my_aldous")
# Example using TSS provided in tssInfo.
getTSSdata_trees(tss = c("Colless", "Sackin"),
treeList = genTrees(n = 5L, Ntrees = 3L, tm = "yule"))
# Example using a "new" TSS provided by the user.
my_avd <- list(func = treebalance::avgVertDep, short = "My AVD")
getTSSdata_trees(tss = c("Colless", "my_avd"),
treeList = genTrees(n = 5L, Ntrees = 3L,
tm = list("IF_sym", 2)))
Run the code above in your browser using DataLab