dot-cutAtSearch: Search character-string and cut either before or after

.cutAtSearchR Documentation

Search character-string and cut either before or after

Description

This function extracts/cuts text-fragments out of txt following specific anchors defined by arguments cutFrom and cutTo.

Usage

.cutAtSearch(
  x,
  searchChar,
  after = TRUE,
  silent = TRUE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

x

character vector to be treated

searchChar

(character) text to look for

after

(logical)

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Value

This function returns a modified character vector

See Also

grep

Examples

.cutAtSearch("abcdefg","de")

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.