Must specify either taxon
or code
. taxon
is used if both are specified.
getParentTaxa(
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
getParentTaxa("ultic haploxeralfs")
#> $`ultic haploxeralfs`
#> J JD JDG
#> "Alfisols" "Xeralfs" "Haploxeralfs"
#>
getParentTaxa(code = c("ABCD", "DABC"))
#> $ABCD
#> A AB ABC
#> "Gelisols" "Turbels" "Anhyturbels"
#>
#> $DABC
#> D DA DAB
#> "Andisols" "Aquands" "Cryaquands"
#>
getParentTaxa("folists", convert = FALSE)
#> $folists
#> [1] "B"
#>