powered by
Add tips not on existing tree to the tree at random, if they do not have congeners on the tree.
rand_absent_tippr(tree, absent_list, echo_subtrees = NULL, echo_revbayes = NULL)
Starting tree; object of type phylo
Vector of taxa in the total dataset that are not on the tree
Boolean; Print newick subtree with missing taxa added to screen. Default FALSE.
Boolean; Print clade constraints with missing taxa added to screen, formatted for RevBayes fossilized birth-death analysis. Default FALSE.
tree Phylo object containing the starting tree, and all tips that were added.
# NOT RUN { new_tree <- rand_absent_tippr(tree, absent_list) # }
Run the code above in your browser using DataLab