Taxa that resolve to a subgroup level taxon and contain a comma ","
are assumed to be "family"
-level.
taxon_to_level(taxon)
character of taxonomic hierarchy levels (such as "order", "suborder", "greatgroup", "subgroup", "family") for each element of input vector.
# get the taxonomic levels for various taxa
taxon_to_level(c("gelisols", NA, "foo", "typic folistels", "folistels"))
#> [1] "order" NA NA "subgroup" "greatgroup"