Learn R Programming

ORscraper (version 0.1.0)

narrow_text: Extract a subset of text based on start and end patterns

Description

This function extracts lines from a text based on specified start and end markers.

Usage

narrow_text(
  start_text,
  start_text2 = "   Variaciones del número de copias",
  lines_total,
  text_limit,
  text_limit2 = "Comentarios adicionales sobre las variantes"
)

Value

A character vector containing the extracted lines.

Arguments

start_text

Character. The text marker indicating the beginning of the subset.

start_text2

Character. An optional secondary start marker.

lines_total

Character vector. The full set of text lines.

text_limit

Character vector. The text marker indicating the end of the subset.

text_limit2

Character vector. An optional secondary end marker.