Get the taxon name the Soil Order, Suborder, Great Group or Subgroup level

getTaxonAtLevel(x, level = c("order", "suborder", "greatgroup", "subgroup"))

Arguments

x

A character vector containing subgroup-level taxonomic names

level

one of c("order","suborder","greatgroup","subgroup")

Value

A named character vector of taxa at specified level, where names are the internal Soil Taxonomy letter codes.

Examples

# default gets the soil order getTaxonAtLevel(c("typic haplargids", "typic glacistels")) #, level = "order")
#> typic haplargids typic glacistels #> "aridisols" "gelisols"
# specify alternate levels getTaxonAtLevel("humic haploxerands", level = "greatgroup")
#> humic haploxerands #> "haploxerands"
# can't get subgroup (child) from great group (parent) getTaxonAtLevel("udifolists", level = "subgroup")
#> udifolists #> NA
# but can do parents of children getTaxonAtLevel("udifolists", level = "suborder")
#> udifolists #> "folists"