check_input_event_times: Checks that event times are correct

View source: R/nltt_diff_exact_extinct.R

check_input_event_timesR Documentation

Checks that event times are correct

Description

Checks event_times and event_times2 are of the appropriate class and have expected characteristics for correct calculation of NLTT in nltt_diff_exact_extinct.

Usage

check_input_event_times(event_times, event_times2, time_unit)

Arguments

event_times

event times of the first phylogeny

event_times2

event times of the second phylogeny

time_unit

the time unit of the branching times

  • "ago: "the branching times are postive, as these are in time units ago

  • "since: "the branching times are negative, as these are in time units since present

Value

Nothing. Throws error with helpful error message if event_times and event_times2 are not correct.

Author(s)

Pedro Neves and Richèl Bilderbeek and Thijs Janzen


nLTT documentation built on Aug. 21, 2023, 5:13 p.m.