treeply: Run a function on the phylogeny of a treedata object
Description
Applies a function to the phylogeny in a treedata object. If the order of
tips are changed, or if tips are dropped, then the data are automatically reordered
to match the tree.
Usage
treeply(tdObject, ...)
# S3 method for treedata
treeply(tdObject, FUN, ...)
Arguments
tdObject
An object of class treedata
...
Additional arguments
FUN
A function that operates on an object of class 'phylo'