parent: Vectorized node parent getter

View source: R/tree_manipulation.R

parentR Documentation

Vectorized node parent getter

Description

Vectorized node parent getter

Usage

parent(x, ...)

## S3 method for class 'Strata'
parent(x, id = id, type = "name", ...)

## S3 method for class 'phylo'
parent(x, id = 1:tree_size(x), type = "auto", ...)

Arguments

x

phylo object

...

Arguments passed on to parent.phylo

id

vector of ids or names

type

id type: ['name', 'index', 'auto']

Value

vector of parent ids (NA if root)


arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.