get_nodes_to_expand_info: Get the labels of each interior node

View source: R/helpers.R

get_nodes_to_expand_infoR Documentation

Get the labels of each interior node

Description

Get the labels of each interior node

Usage

get_nodes_to_expand_info(hc, dc)

Arguments

hc

hclust object

dc

a vector of length n with integers between 0 and num_clusters such as is outputted by dynamicTreeCut::cutreeDynamicTree

Value

Returns an (n-1)-vector giving the labels of each interior node. A positive value means that all nodes in that node's subtree have that label. A value of -1 means that this node's children have different labels. A value of -2 means that at least one child has a value of -1. And so forth.


protoshiny documentation built on May 18, 2022, 5:13 p.m.