parent: parent

Description Usage Arguments Value Author(s) Examples

View source: R/AllGenerics.R

Description

access parent data

Usage

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

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

Example output

Attaching package: 'tidytree'

The following object is masked from 'package:stats':

    filter

# A tibble: 1 x 4
  parent  node branch.length label
   <int> <int>         <dbl> <chr>
1      5     6         0.581 <NA> 

tidytree documentation built on April 2, 2020, 5:09 p.m.