View source: R/tree_manipulation.R
parent | R Documentation |
Vectorized node parent getter
parent(x, ...)
## S3 method for class 'Strata'
parent(x, id = id, type = "name", ...)
## S3 method for class 'phylo'
parent(x, id = 1:tree_size(x), type = "auto", ...)
x |
phylo object |
... |
Arguments passed on to |
id |
vector of ids or names |
type |
id type: ['name', 'index', 'auto'] |
vector of parent ids (NA if root)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.