Learn R Programming

treeplyr (version 0.1.10)

reorder: Reorder a treedata object

Description

Reorders a treedata object. Both the tips and the data are automatically reordered to match.

Usage

reorder(tdObject, ...)

# S3 method for treedata reorder(tdObject, order = "postorder", index.only = FALSE, ...)

Arguments

tdObject

An object of class treedata

...

Additional arguments to reorder.phylo

order

Method for reordering

index.only

Whether a index is returned rather than the reordered treedata object

Value

An object of class treedata

See Also

reorder.phylo

Examples

Run this code
# NOT RUN {
data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
td <- reorder(td, "postorder")
# }

Run the code above in your browser using DataLab