Skip to contents

Function to add an outgroup to any phylogeny, in phylo or newick format

Usage

tree_add_outgroup(tree = NULL, outgroup = "outgroup")

Arguments

tree

A tree either as a newick character string or as a phylo object.

outgroup

A character vector with the name of the outgroup. If it has length>1, only first element will be used.

Value

A phylo object with no root edge.