.cutAtSearch {wrMisc} | R 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
Examples
.cutAtSearch("abcdefg","de")
[Package wrMisc version 1.15.1 Index]