# is great group a taxon above family?
level_hierarchy("greatgroup") > "family"
# is order lower level than suborder?
level_hierarchy("order") < "suborder"
# what levels are above or equal to a particular taxon's level?
level_hierarchy(as.is = TRUE)[level_hierarchy() >= taxon_to_level("aquisalids")]
## this produces an error (used for checking for taxa above family)
# level_hierarchy("family", family = FALSE)
Run the code above in your browser using DataLab