Title Calculate the amount of phylogenetic deficit in assemblages
PD_defict(phylo, data, level = "Congeneric_insertion")Phylogenetic tree in newick format, can be an object from FishPhyloMaker function
A data frame containing the classification informing the level of insertions. This can be obtained
from FishPhyloMaker function
Character indicating which level must be considered in the calculation of PD deficit. default is "Congeneric_insertion"
A scalar containing the value of PD deficit for the level chosen
FishPhyloMaker for phylogeny and data frame containing the classification of insertions