Dear all，
I am a student in the field of phylogeny.I calculated the phylogenetic diversity with R Language.I I encountered the above problem.Maybe there's something wrong with my phylogenetic tree.I wish to ask teachers to help me solve this problem.

Thanks a lot！！！

Error in node.age(sub.tree) :
function node.age only works with a rooted phylo object

您好，我的问题和您的一模一样，请问您这个问题最终解决了吗

Hello, my problem is the same as yours, did you finally solve this problem?