ancestor: ancestor

Description Usage Arguments Value Author(s) Examples

View source: R/AllGenerics.R

Description

access ancestor data

Usage

1
2
3
4
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

1
2
3
4
library(ape)
tree <- rtree(4)
x <- as_data_frame(tree)
ancestor(x, 3)

tidytree documentation built on June 13, 2018, 9:03 a.m.