phyLengthbyT: Calculate branch length by reference ageT

Description Usage Arguments Value Examples

View source: R/phyLengthbyT.r

Description

phyLengthbyT: Calculate branch length by reference ageT

Usage

1
phyLengthbyT(Ts, phy, datatype = "abundance", rootExtend = T)

Arguments

phy

a phylogenetic tree with "chaophytree" class.

datatype

data type of input data: individual-based abundance data (datatype = "abundance"), species by sampling-units incidence matrix (datatype = "incidence_raw").

Tx

a numerical vector of ageT.

Value

a maxtrix with new branch length by ageT(Tx).

Examples

1
2
3
4
5
6
data(phybird)
bird.abu <- phybird$abun
bird.inc <- phybird$inci
bird.lab <- rownames(phybird$abun)
bird.phy <- phybird$chaophytree
phyLengthbyT(Ts=c(75,55),  phy=bird.phy, datatype="abundance")

chaolab2019/chaoUtility documentation built on Feb. 26, 2020, 2:48 p.m.