analyze_co_occurrences: Analyze code co-occurrence patterns

View source: R/annotate_gui.R

analyze_co_occurrencesR Documentation

Analyze code co-occurrence patterns

Description

Analyzes how different codes co-occur within the annotated text by examining overlapping annotations and calculating various metrics of co-occurrence strength.

Usage

analyze_co_occurrences(annotations)

Arguments

annotations

A 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

Value

A list containing co-occurrence analysis results:

  • combinations: list containing frequency table of code co-occurrences

  • characteristics: list with average overlap length and total overlap count


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