powered by
access ancestor data
ancestor(.data, .node, ...)# S3 method for tbl_tree ancestor(.data, .node, ...)
# S3 method for tbl_tree ancestor(.data, .node, ...)
ancestor data
phylo or tbl_tree object
node number
additional parameters
Guangchuang Yu
library(ape) tree <- rtree(4) x <- as_tibble(tree) ancestor(x, 3)
Run the code above in your browser using DataLab