calculate_hierarchy_stats {textAnnotatoR} | R 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
[Package textAnnotatoR version 0.1.4 Index]