| [[.treedata.table | R Documentation |
treedata.tableThis function extracts a named vector for any trait from an object of class
treedata.table.
## S3 method for class 'treedata.table'
x[[..., exact = TRUE]]
x |
An object of class |
... |
Column name in class |
exact |
whether exact search should be conducted |
A new object of class vector with names set to labels corresponding
to tip labels in the provided treedata.table object.
data(anolis)
# With a phylo object
td <- as.treedata.table(anolis$phy, anolis$dat)
td[["SVL"]]
# With a multiPhylo object
treesFM <- list(anolis$phy, anolis$phy)
class(treesFM) <- "multiPhylo"
td <- as.treedata.table(treesFM, anolis$dat)
td[["SVL"]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.