taxon_to_level: Determine taxonomic level of specified taxa

View source: R/higherTaxaLevels.R

taxon_to_levelR Documentation

Determine taxonomic level of specified taxa

Description

Taxa that resolve to a subgroup level taxon and contain a comma "," are assumed to be "family"-level.

Usage

taxon_to_level(taxon)

Arguments

taxon

character vector of taxon names at Order, Suborder, Great Group or Subgroup level.

Value

character of taxonomic hierarchy levels (such as "order", "suborder", "greatgroup", "subgroup", "family") for each element of input vector.

Examples


# get the taxonomic levels for various taxa

taxon_to_level(c("gelisols", NA, "foo", "typic folistels", "folistels"))


SoilTaxonomy documentation built on Nov. 17, 2023, 1:07 a.m.