metacoder (version 0.1.3)

edge_list_depth: 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.