Learn R Programming

treestartr (version 0.1.0)

echo_rb: Print RevBayes-formatted clade constriants.

Description

Once a tip has been added to the tree, print the subtree to which the tip was added. The output of this function is printed for use as a RevBayes clade constraint object.

Usage

echo_rb(tree, mrca_list, tip)

Arguments

tree

Tree to which the tip will be added; object of type phylo

mrca_list

Vector of taxa. The added tip will subtend the MRCA of these taxa

tip

Taxon which will be added to the tree.

Value

vector A comma-separated list of all the taxa in the subtree to which the tip was added.

Examples

Run this code
# NOT RUN {
 mrca_list <- c("Ursus_arctos", "Ursus_spelaeus", "Ursus_americanus")
clade_constraint <- echo_rb(tree, mrca_list, "Ursus_abstrusus")
# }

Run the code above in your browser using DataLab