Learn R Programming

textAnnotatoR (version 1.0.1)

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

Value

List containing:

  • transitions: List of transitions between consecutive codes

  • patterns: List of identified repeated code sequences

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