sortingtraits function

Data checking and trait sorting In preparation for likelihood calculation, it orders trait data according the tree tips

Data checking and trait sorting In preparation for likelihood calculation, it orders trait data according the tree tips

sortingtraits(trait_info, phy)

Arguments

  • trait_info: data frame where first column has species ids and the second one is the trait associated information.
  • phy: phylogenetic tree of class phylo, rooted and with branch lengths.

Returns

Vector of traits

Examples

# Some data we have prepared data(traits) data('phylo_vignette') traits <- sortingtraits(traits, phylo_vignette)
  • Maintainer: Rampal S. Etienne
  • License: GPL (>= 3) | file LICENSE
  • Last published: 2024-04-30