Hi!
I want to root several trees in the same file to then use it for character
reconstruction taking phylogenetic uncertainty into account.
root() from ape package requires an object of class 'Phylo' but i can only
import my dataset into 'multiPhylo'.
i need to apply the root function to each
Hi Silvia.
Are you using outgroup rooting? If so, this should work with the following:
trees-lapply(unclass(trees),root,outgroup=outgroupname)
class(trees)-multiPhylo
You can also give lapply any of the other arguments in root, for instance: