Learn R Programming

textAnnotatoR (version 1.0.1)

analyze_code_distribution: 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)

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

Arguments

annotations

Data frame containing annotations with columns:

  • start: numeric, starting position of annotation

  • end: numeric, ending position of annotation