write_newick_str: Convert a species history table to a Newick string

View source: R/write_newick_str.R

write_newick_strR Documentation

Convert a species history table to a Newick string

Description

Reads a tibble recording species birth, death and phylogenetic relations, figures out the branch lengths and return a phylogenetic tree in Newick format. Based on DDD::L2phylo().

Usage

write_newick_str(spp_tbl, include_stem = TRUE)

Arguments

spp_tbl

a table with phylogenetic information for each species, the output of build_spp_tbl()

include_stem

logical, should the stem lineage and stem age be included? If not, the string stops at crown lineages.

Author(s)

Théo Pannetier


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