Learn R Programming

TBRDist (version 1.0.2)

.PrepareTrees: Prepare trees for passing to uspr

Description

Converts trees to Newick strings, as expected by the 'uspr' C++ library.

Usage

.PrepareTrees(
  tree1,
  tree2,
  allPairs = FALSE,
  checks = TRUE,
  unroot = FALSE,
  keepLabels = FALSE
)

Arguments

keepLabels

Logical specifying whether to pass text labels to distance calculator. This is slower, but makes maximum agreement forests easier to read.

Value

.PrepareTrees() returns a two-element list, each entry of which is a character vector listing trees in Newick format.