getParentTaxa {SoilTaxonomy} | R Documentation |
Get the higher (parent) taxa for a taxon name or code
Description
Must specify either taxon
or code
. taxon
is used if both are specified.
Usage
getParentTaxa(
taxon = NULL,
code = NULL,
convert = TRUE,
level = c("order", "suborder", "greatgroup", "subgroup")
)
Arguments
taxon |
A character vector of taxa (case-insensitive) |
code |
A character vector of taxon codes (case sensitive) |
convert |
Convert results from taxon codes to taxon names? Default: |
level |
level Filter results to specific level? Default: |
Value
A named list, where names are taxon codes and values are character vectors representing parent taxa
Examples
getParentTaxa("ultic haploxeralfs")
getParentTaxa(code = c("ABCD", "DABC"))
getParentTaxa("folists", convert = FALSE)
[Package SoilTaxonomy version 0.2.4 Index]