ltt_tbl_to_func: Transform the LTT table into a step function

View source: R/ltt_tbl_to_func.R

ltt_tbl_to_funcR Documentation

Transform the LTT table into a step function

Description

Converts the lineage-through-time table of a tree into a stepwise function of time with stats::stepfun()

Usage

ltt_tbl_to_func(ltt_tbl)

Arguments

ltt_tbl

a tibble with columns time and N, e.g. the output of get_ltt_tbl().

Value

a stepwise function of time that returns the number of lineages in the tree at any point in time

Author(s)

Théo Pannetier


TheoPannetier/comrad documentation built on April 8, 2023, 8:06 a.m.