reorder.treedata: Reorder a 'treedata' object

Description Usage Arguments Value See Also Examples

View source: R/treeplyr_functions.R

Description

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

Usage

1
2
3
4
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

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

treeplyr documentation built on Sept. 17, 2020, 5:07 p.m.