reorder.treedata: Reorder a 'treedata' object

View source: R/treeplyr_functions.R

reorderR Documentation

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 class '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

data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
td <- reorder(td, "postorder")

uyedaj/treeplyr documentation built on March 9, 2023, 6:37 p.m.