pd_from_Cadotte: Calculate phylogenetic diversity

Description Usage Arguments Details Value Author(s) References Examples

Description

Calculates PD (phylogenetic diversity) for a phylogeny

Usage

1
2
3
4
5
6
7
8
  ## S4 method for signature 'phylo4com'
pd(x, method = c("traditional", "polytomy",
    "yule"))
  ## S4 method for signature 'phylo4d'
pd(x, method = c("traditional", "polytomy",
    "yule"), ...)
  ## S4 method for signature 'phylo4'
pd(x, method = c("traditional"))

Arguments

x

A phylo4com, phylo4d, or phylo4 object.

method

Method for calculating pd.

...

additional arguments to be passed to other methods

Details

TODO

When applied to a phylo4 tree, traditional PD is the only option (because the object contains no abundance data in this case).

Value

For phylo4com or phylo4d, a numeric vector of length equal to the number of communities. For phylo4, a single numeric value for the tree.

Author(s)

Jim Regetz (regetz@nceas.ucsb.edu)

References

TODO

Examples

1
2
3
4
5
6
7
8
  pd(weeds)

  # traditional pd of the master tree
  pd(phylo4(weeds))

#  minTL(weeds$A) <- getMinTL(weeds$A, genera(weeds$A))
#  pd(weeds$A, "polytomy")
#  pd(weeds$A, "yule")

eliotmiller/ecoPDcorr documentation built on May 16, 2019, 3:02 a.m.