sortingtraits: Data checking and trait sorting

Description Usage Arguments Value Examples

View source: R/secsse_utils.R

Description

In preparation for likelihood calculation, it orders trait data according the tree tips

Usage

1

Arguments

traitinfo

data frame where first column has species ids and the second one is the trait associated information.

phy

phy phylogenetic tree of class phylo, ultrametric, fully-resolved, rooted and with branch lengths.

Value

Vector of traits

Examples

1
2
3
4
# Some data we have prepared
data(traitinfo)
data("phylo_Vign")
traits <- sortingtraits(traitinfo,phylo_Vign)

secsse documentation built on July 16, 2021, 9:06 a.m.