View source: R/list_offspring.R
list_offspring | R Documentation |
For each node in a tree, the functions list_offspring
and list_parents
lists all its offspring and parents, respectively.
list_offspring(x)
list_parents(x)
x |
An object of class |
List of length n
(total number of nodes).
# A simple example with phylo tree ------------------------------------------
set.seed(4)
x <- ape::rtree(10)
list_offspring(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.