Last chance! 50% off unlimited learning
Sale ends in
pd(samp, tree, include.root=TRUE)
include.root=TRUE
), the PD of all samples will include the branch length connecting taxa in those samples and the root node of the supplied tree. The root of the supplied tree may not be spanned by any taxa in the sample. If you want the root of your tree to correspond to the most recent ancestor of the taxa actually present in your sample, you should prune the tree before running pd
:
prunedTree <- prune.sample(sample,tree)
psr
, ses.pd
data(phylocom)
pd(phylocom$sample, phylocom$phylo)
Run the code above in your browser using DataLab