re-root a tree
# S3 method for treedata
root(phy, outgroup, node = NULL, edgelabel = TRUE, ...)
rerooted treedata
tree object
a vector of mode numeric or character specifying the new outgroup
node to reroot
a logical value specifying whether to treat node labels as edge labels and thus eventually switching them so that they are associated with the correct edges.
additional parameters passed to ape::root.phylo