Learn R Programming

metacoder (version 0.3.7)

split_by_level: Splits a taxonomy at a specific level or rank

Description

Breaks one taxonomy into multiple, each with a root of a specified distance from the root.

Usage

split_by_level(taxa, parents, level, rank = NULL)

Value

a list of taxon id character vectors. taxa.

Arguments

taxa

(character) Unique taxon IDs for every possible taxon.

parents

(character) Unique taxon IDs for the supertaxa of every possible taxon.

level

(character or numeric of length 1)

rank

(character) The rank designation (e.g. "genus") corresponding to each observation in