createNode: Change depth to appropriate calculation

View source: R/createNode.R

createNodeR Documentation

Change depth to appropriate calculation

Description

Change depth to appropriate calculation

Usage

createNode(x, q, index = NULL)

Arguments

x

A boolean or binary vector coerced to bit vector.

q

A commonnality value associated to x.

Details

Depth equals the greatest index corresponding to 1 in the bit vector x.

Value

A list of length 5 containing the following components:

  • x The binary table.

  • q The commonalities.

  • left The left side of the tree.

  • right The right side of the tree.

  • depth The depth of the tree..

Author(s)

Peiyuan Zhu

Examples

# TO DO


RAPLER/dst-1 documentation built on June 2, 2025, 9:22 a.m.