This function will remove species from community data that are not in the phylogeny. It will also remove tips from the phylogeny that are not in the community data.
match_comm_tree(comm, tree, comm_2 = NULL)
A site by species data frame, with site names as row names.
A phylogeny with "phylo" as class.
Another optional site by species data frame, if presented, both community data and the phylogeny will have the same set of species. This can be useful for PCD with custom species pool.
A list of the community data and the phylogeny.