PDFD(Ps, Tree, CheckArguments = TRUE)
TRUE
, the function arguments are verified. Should be set to FALSE
to save time when the arguments have been checked elsewhere.Coverage
.
Use bcPhyloDiversity
(Ps, 0, Tree)
and choose the Correction
.bcPhyloDiversity
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest
# and their taxonomy)
data(Paracou618)
# Ps is the vector of probabilities
Ps <- Paracou618.MC$Ps
# Calculate the phylogenetic Shannon diversity of the plot
PDFD(Ps, Paracou618.Taxonomy)
Run the code above in your browser using DataLab