Recursively prune a TableTree
prune_table(
tt,
prune_func = prune_empty_level,
stop_depth = NA_real_,
depth = 0
)
TableTree (or related class). A TableTree object representing a populated table.
function. A Function to be called on each subtree which returns TRUE if the entire subtree should be removed.
numeric(1). The depth after which subtrees should not be checked for pruning. Defaults to NA
which indicates pruning should happen at all levels
numeric(1). Used internally, not intended to be set by the end user.
A TableTree pruned via recursive application of prune_func
.