ancestor: ancestor

View source: R/AllGenerics.R

ancestorR Documentation

ancestor

Description

access ancestor data

Usage

ancestor(.data, .node, ...)

## S3 method for class 'tbl_tree'
ancestor(.data, .node, ...)

Arguments

.data

phylo or tbl_tree object

.node

node number

...

additional parameters

Value

ancestor data

Author(s)

Guangchuang Yu

Examples

library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
ancestor(x, 3)

YuLab-SMU/tidytree documentation built on July 30, 2024, 8:07 p.m.