Test whether a node is a leaf node

# S4 method for HierarchicalPartition
is_leaf_node(object, node, merge_node = merge_node_param())

Arguments

object

A HierarchicalPartition-class object.

node

A vector of node IDs.

merge_node

Parameters to merge sub-dendrograms, see merge_node_param.

Examples

data(golub_cola_rh)
is_leaf_node(golub_cola_rh, all_leaves(golub_cola_rh))
#> [1] TRUE TRUE TRUE TRUE TRUE TRUE