tree_depth: Tree depth

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tree_depth.R

Description

Computes phylogenetic tree depth based from a phylogenetic tree and a vector of (relative) abundances.

Usage

1
tree_depth(tree, abund)

Arguments

tree

A phylogenetic tree of class 'phylo'. The tip labels must match the row names in the OTU table. Use the function match_data() if the OTU names do not match.

abund

A vector or a matrix/data.frame indicating the relative abundances of one or multiple samples, respectively. If a matrix/data.frame is provided, columns must refer to samples and rows to OTUs.

Details

Tree depth

Value

A tree depth value

Author(s)

Antton Alberdi, anttonalberdi@gmail.com

See Also

div_part, gamma_div, match_data

Examples

1
2
3
4

hilldiv documentation built on Oct. 1, 2019, 5:04 p.m.

Related to tree_depth in hilldiv...