Learn R Programming

datelife (version 0.6.8)

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

Description

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

Usage

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

Value

A phylo object with no root edge.

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.