pd2: Faith's PD

View source: R/pd.R

pd2R Documentation

Faith's PD

Description

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

Usage

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/lirrr documentation built on Feb. 3, 2024, 5:42 p.m.