parent: parent

View source: R/AllGenerics.R

parentR Documentation

parent

Description

access parent data

Usage

parent(.data, .node, ...)

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

Arguments

.data

phylo or tbl_tree object

.node

node number

...

additional parameters

Value

parent data

Author(s)

Guangchuang Yu

Examples

library(ape)
tree <- rtree(4)
x <- as_tibble(tree)
parent(x, 2)

tidytree documentation built on May 29, 2024, 5:21 a.m.