add_outgroup {DAISIEprep}R Documentation

Add an outgroup species to a given phylogeny.

Description

Add an outgroup species to a given phylogeny.

Usage

add_outgroup(phylo)

Arguments

phylo

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

Value

A phylo object

Examples

phylo <- ape::rcoal(10)
phylo_with_outgroup <- add_outgroup(phylo)

[Package DAISIEprep version 0.4.0 Index]