treedply.treedata: Run a function on a 'treedata' object

Description Usage Arguments Details Value Examples

View source: R/treeplyr_functions.R

Description

Run a function on a treedata object

Usage

1
2
3
4
treedply(tdObject, ...)

## S3 method for class 'treedata'
treedply(tdObject, ...)

Arguments

tdObject

A treedata object

...

A function call.

Details

This function allows arbitrary R functions that use trees and data to be run on treedata objects.

Value

Function output

Examples

1
2
3
4
5
data(anolis)
td <- make.treedata(anolis$phy, anolis$dat)
treedply(td, geiger::fitContinuous(phy, getVector(td, SVL), model="BM", ncores=1))
treedply(td, phytools::phylosig(phy, getVector(td, awesomeness), "lambda", test=TRUE))
treedply(td, phytools::phenogram(phy, getVector(td, SVL), ftype="off", spread.labels=FALSE))

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