calculate_hierarchy_stats: Calculate hierarchy statistics

View source: R/annotate_gui.R

calculate_hierarchy_statsR Documentation

Calculate hierarchy statistics

Description

Calculates various statistics about the code hierarchy including the total number of themes and codes, maximum depth, and distribution of codes across themes.

Usage

calculate_hierarchy_stats(node)

Arguments

node

Root node of the hierarchy tree

Value

A list containing hierarchy statistics:

  • total_themes: Total number of themes in the hierarchy

  • total_codes: Total number of codes in the hierarchy

  • max_depth: Maximum depth of the hierarchy tree

  • codes_per_theme: List showing number of codes in each theme

  • average_codes_per_theme: Average number of codes per theme


textAnnotatoR documentation built on April 3, 2025, 7:35 p.m.