Get the lower (child) taxa for a taxon name or code
getChildTaxa(
taxon = NULL,
code = NULL,
convert = TRUE,
level = c("order", "suborder", "greatgroup", "subgroup")
)
A named list, where names are taxon codes and values are character vectors representing parent taxa
A character vector of taxa (case-insensitive)
A character vector of taxon codes (case sensitive)
Convert results from taxon codes to taxon names? Default: TRUE
Filter results to specific level? Default: "order"
,"suborder"
,"greatgroup"
,"subgroup"
# suborder children of "Mollisols"
getChildTaxa("Mollisols", level = "suborder")
# get all children within a great group, given a subgroup
getChildTaxa(getTaxonAtLevel("Ultic Haploxeralfs", "greatgroup"))
Run the code above in your browser using DataLab