split_by_level: Splits a taxonomy at a specific level or rank

Description Usage Arguments Value

View source: R/taxonomy.R

Description

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

Usage

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

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

Value

a list of taxon id character vectors. taxa.


metacoder documentation built on May 30, 2017, 3:11 a.m.