analyze_code_distribution: Analyze coding density across text

View source: R/annotate_gui.R

analyze_code_distributionR Documentation

Analyze coding density across text

Description

Analyzes the density of code applications across the text by calculating overall density metrics and identifying regions of dense coding activity.

Usage

analyze_code_distribution(annotations)

Arguments

annotations

Data frame containing annotations with columns:

  • start: numeric, starting position of annotation

  • end: numeric, ending position of annotation

Value

List containing:

  • overall_density: Numeric value representing the proportion of text covered by codes

  • dense_regions: List of vector pairs indicating start and end positions of dense regions


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