pd2: Faith's PD

Description Usage Arguments Value

View source: R/pd.R

Description

Calculate faith's pd, this is a wrapper of phylocomr::ph_pd and picante::pd

Usage

1
pd2(comm, tree, include.root = TRUE, comm_long)

Arguments

comm

a site by species data frame, site names as row names, only works for presence/absence data

tree

a phylogeny of class "phylo"

include.root

whether include root in picante::pd; phylocomr::ph_pd always include root

comm_long

long format of comm, 3-columns: site, freq, sp; optional.

Value

a data frame of PD for each site


daijiang/dli55 documentation built on Jan. 9, 2020, 3:30 p.m.