Description Usage Arguments Value Examples
View source: R/extractVector.R
Returning a named vector from a treedata.table object
1 | 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
1 2 3 4 5 6 | 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.