getLowestTaxLvl: Find lowest taxonomic level

View source: R/internals.R

getLowestTaxLvlR Documentation

Find lowest taxonomic level

Description

Finds the lowest taxonomic level of two given levels in tax. The hierarchic order of taxonomic levels is simply taken from the order of column names in tax

Usage

getLowestTaxLvl(tax, tax_aggregate = NULL, tax_add = NULL)

Arguments

tax

The taxonomy table from an ampvis2 object (ampvis2obj$tax)

tax_aggregate

A character vector of one or more taxonomic levels (exactly as in the column names of ampvis2obj$tax), fx Genus or Species. (default: NULL)

tax_add

A second character vector similar to tax_aggregate. (default: NULL)

Value

A length one character vector with the lowest taxonomic level.

Author(s)

Kasper Skytte Andersen ksa@bio.aau.dk


MadsAlbertsen/ampvis2 documentation built on Jan. 28, 2024, 7:12 a.m.