bt_addtag: AddTag: Code to determine a tag for BayesTraits

View source: R/ancestor_code.R

bt_addtagR Documentation

AddTag: Code to determine a tag for BayesTraits

Description

Given a tree and a set of taxa, this function will return all taxa between the two given and return an AddTag line that can be added to a BayesTraits script to use with other analysis (e.g. RecNode)

Usage

bt_addtag(tree, taxa, label = "ANC")

Arguments

tree

an object of class phylo

taxa

a vector of character strings indicating relevant taxa

label

the name of the label (ANC by default)

Value

a string starting with 'AddTag' followed by the label and taxa names


SamPassmore/bayestraitr documentation built on July 8, 2023, 10:16 a.m.