Learn R Programming

textAnnotatoR (version 1.0.1)

analyze_coverage: Analyze coverage patterns in annotations

Description

Analyzes how codes are distributed throughout the text, including clustering patterns and coding density.

Usage

analyze_coverage(annotations)

Value

List containing:

  • clusters: List of annotation clusters

  • density: List containing overall density metrics

  • distribution: List containing code frequencies and positions

Arguments

annotations

Data frame containing text annotations with columns:

  • start: numeric, starting position of annotation

  • end: numeric, ending position of annotation

  • code: character, code applied to the annotation