View source: R/extractVector.R
| extractVector | R Documentation |
Returning a named vector from a treedata.table object
extractVector(tdObject, ...)
tdObject |
A treedata.table object |
... |
The name of the column or columns to select. |
A named vector or a list of named vectors
data(anolis)
td <- as.treedata.table(tree = anolis$phy, data = anolis$dat)
# extracts the named vector for SVL from the td object
extractVector(td, "SVL")
# extracts the named vector for SVL and ecomorph from the td object
extractVector(td, "SVL", "ecomorph")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.