edge_list_depth: Get distance from root of edgelist observations

View source: R/heat_tree--internal.R

edge_list_depthR Documentation

Get distance from root of edgelist observations

Description

Gets the number of ancestors/supergroups for observations of an edge/adjacency list

Usage

edge_list_depth(taxa, parents)

Arguments

taxa

(character) Unique taxon IDs for every possible taxon.

parents

(character) Unique taxon IDs for the supertaxa of every possible taxon. Root taxa should have NA in this column.


metacoder documentation built on April 4, 2023, 9:08 a.m.