getTipdata(tipdata, phy)
read.tree
getTipdata
takes species richness data and adds a new component phenotype
to your phylogenetic tree. The phenotype data could in principle be anything, but the function is designed to add species richness data to the tree to facilitate analysis by fitLambda_1rate
and fitNDR_2rate
.
This function requires that the names in tipdata
exactly match phy$tip.label
; if they don't, you will (probably) receive an error message. If you fail to supply a vector with names or a dataframe with row.names, the input vector will be matched exactly to the to tips in the order in which they are stored in your tree (e.g., tipdata[1]
will correspond to phy$tip.label[1]
). This is not recommended.fitNDR_2rate
, getTipdata
, lambda.stem.ml
, fitNDR_1rate