Learn R Programming

textAnnotatoR (version 1.0.1)

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

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

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