unifrac2: unifrac

View source: R/pd.R

unifrac2R Documentation

unifrac

Description

calculate unifrac of pairwise site. This is based on picante::unifrac, but with phylocomr::ph_pd to calculate pd, which can improve speed dramatically.

Usage

unifrac2(comm, tree, comm_long)

Arguments

comm

A site by sp data frame, row names are site names.

tree

A phylogeny with 'phylo' class.

comm_long

A long format of comm, can be missing.

Value

A site by site distance object.


daijiang/lirrr documentation built on Feb. 3, 2024, 5:42 p.m.