create_plain_text_annotations: Create plain text version of annotations

View source: R/project.R View source: R/annotate_gui.R

create_plain_text_annotationsR Documentation

Create plain text version of annotations

Description

Converts annotated text to plain text format with code markers. Each annotation is represented as a code identifier and annotated text wrapped in square brackets. Multiple annotations are preserved and shown in order of appearance in the text.

Converts annotated text to plain text format with code markers. Each annotation is represented as a code identifier and annotated text wrapped in square brackets. Multiple annotations are preserved and shown in order of appearance in the text.

Usage

create_plain_text_annotations(text, annotations)

create_plain_text_annotations(text, annotations)

Arguments

text

Character string containing the original text

annotations

Data frame of annotations with columns:

  • start: Numeric vector of starting positions

  • end: Numeric vector of ending positions

  • code: Character vector of code names

Value

Character string containing formatted text with code markers

Character string containing formatted text with code markers


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