analyze_sequences: Analyze sequences and transitions between codes

View source: R/annotate_gui.R

analyze_sequencesR Documentation

Analyze sequences and transitions between codes

Description

Analyzes how codes are sequenced in the text by examining transitions between consecutive codes and identifying repeated patterns.

Usage

analyze_sequences(annotations)

Arguments

annotations

Data frame of text annotations with columns:

  • start: numeric, starting position of annotation

  • end: numeric, ending position of annotation

  • code: character, code applied to the annotation

Value

List containing:

  • transitions: List of transitions between consecutive codes

  • patterns: List of identified repeated code sequences


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