Parent/Child Hierarchy
parent_level(level, n = 1)
child_level(level, n = 1)
character. Level name of parent or child at specified level above input level
.
parent_level('subgroup')
#> [1] "greatgroup"
child_level('greatgroup')
#> [1] "subgroup"
parent_level('family', 3)
#> [1] "suborder"
# no level above order
parent_level('family', 5)
#> [1] NA