treedata.table (version 0.1.0)

pulltreedata.table: Returns the character matrix or phylogeny from a treedata.table object

Description

Returns the character matrix or phylogeny from a treedata.table object

Usage

pulltreedata.table(tdObject, type = c("dat", "phy"))

Arguments

tdObject

A treedata.table object

type

Whether the output of the function is a tree ('type="phylo"') or a data.table ('type="dat"')

Value

A data.table or phylo object from the original treedata.table object

Examples

Run this code
# NOT RUN {
data(anolis)
td <- as.treedata.table(anolis$phy, anolis$dat)
pulltreedata.table(td, type = "phy")
pulltreedata.table(td, type = "dat")
# }

Run the code above in your browser using DataCamp Workspace