build_comsie_spp_tbl: Extracts phylogenetic information from a 'comsie' simulation

View source: R/build_comsie_spp_tbl.R

build_comsie_spp_tblR Documentation

Extracts phylogenetic information from a comsie simulation

Description

Reads the output of a comsie simulation and creates a table containing the necessary information about every species to make a phylogeny.

Usage

build_comsie_spp_tbl(comsie_tbl)

Value

a tibble with four columns and a row per species in the simulation

  • species_name, name of the species

  • ancestor_name, name of the ancestral species from which it branched. NA for the initial species.

  • time_birth, the generation at which the species appeared.

  • time_death, the generation at which the last individual died. Last generation if the species was still extant at the end of the simulation.

Author(s)

Théo Pannetier


TheoPannetier/comsie documentation built on Nov. 21, 2022, 4:35 p.m.