Learn R Programming

nLTT (version 1.4.9)

check_input_event_times: 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)

Value

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

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

Author

Pedro Neves and Richèl Bilderbeek and Thijs Janzen