Learn R Programming

DAISIEprep (version 1.0.1)

add_outgroup: Add an outgroup species to a given phylogeny.

Description

Add an outgroup species to a given phylogeny.

Usage

add_outgroup(phylo)

Value

A phylo object

Arguments

phylo

A phylogeny either as a phylo (from the ape package) or phylo4 (from the phylobase package) object.

Examples

Run this code
phylo <- ape::rcoal(10)
phylo_with_outgroup <- add_outgroup(phylo)

Run the code above in your browser using DataLab