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)

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