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?