Learn R Programming

metacoder (version 0.3.7)

get_class_from_el: Get classification for taxa in edge list

Description

Extracts the classification of every taxon in a list of unique taxa and their supertaxa.

Usage

get_class_from_el(taxa, parents)

Value

A list of vectors of taxa IDs. Each list entry corresponds to the taxa supplied.

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.