phylo_subset_both: Subset a reference and a target tree given as 'phylo'...

View source: R/datelife_internal.R

phylo_subset_bothR Documentation

Subset a reference and a target tree given as phylo objects.

Description

Subset a reference and a target tree given as phylo objects.

Usage

phylo_subset_both(
  reference_tree,
  taxa,
  phy = NULL,
  phy4 = NULL,
  dating_method = "PATHd8"
)

Arguments

reference_tree

A phylo object.

taxa

Vector of taxon names to get a subset for.

phy

A user tree to congruify as phylo object (ape).

phy4

A user tree to congruify in phylo4 format (phylobase).

dating_method

The method used for tree dating.

Value

A list with a patristic matrix array and a ⁠$problem⁠ if any.


datelife documentation built on July 10, 2023, 2:02 a.m.