pd2 | R Documentation |
Calculate faith's pd, this is a wrapper of 'phylocomr::ph_pd' and 'picante::pd'.
pd2(comm, tree, include.root = TRUE, comm_long)
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. |
A data frame of PD for each site.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.