R/convert_to_phylo.R

Defines functions convert_to_phylo

Documented in convert_to_phylo

#' Converts list of branching time vectors to phylo objects
#'
#' @inheritParams default_params_doc
#'
#' @return List with phylo objects.
convert_to_phylo <- function(brts) {

  tree <- lapply(
    X = brts,
    FUN = DDD::brts2phylo,
    root = FALSE,
    tip.label = NULL
  )

  tree
}
Neves-P/phylometricsims documentation built on June 3, 2021, 3:21 p.m.