get_subset_array_dispatch: Figure out which subset function to use.

View source: R/datelife_internal.R

get_subset_array_dispatchR Documentation

Figure out which subset function to use.

Description

get_subset_array_dispatch is used inside get_datelife_result()

Usage

get_subset_array_dispatch(
  study_element,
  taxa,
  phy = NULL,
  phy4 = NULL,
  dating_method = "PATHd8"
)

Arguments

study_element

The thing being passed in: an array or a phylo object to serve as reference for congruification.

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 patristic matrix with ages for the target taxa.


phylotastic/datelife documentation built on Jan. 17, 2024, 11:10 p.m.