get_tip_labels_tree_list: Get all the tip labels of a 'multiPhylo' object

Description Usage Arguments Details Value Examples

View source: R/sim_multilocus.R

Description

Get all the tip labels of a 'multiPhylo' object

Usage

1
2
3
get_tip_labels_tree_list(multi_tree)

get_tipnames(multi_tree)

Arguments

multi_tree

an object of class 'multiPhylo'

Details

Retrieves the member "tip.label" from each tree in multi_tree

Value

a list of the same length as 'multi_tree' with only the tip labels

Examples

1
2
3
4
5
mu <- 0.5
lambda <- 1.0
nt <- 6
tr <- sim_stBD(sbr = lambda, sdr = mu, numbsim = 5, n_tips = nt)
tips_of_tr <- get_tip_labels_tree_list(tr)

treeducken documentation built on March 3, 2021, 1:11 a.m.