Description Usage Arguments Value Author(s) See Also Examples
Extract substrings that are bracketed by specified strings before and after.
1 |
s |
Vector of strings to search. |
before |
String to the left of the desired substring within s. |
after |
String to the right of the desired substring within s. |
verbose |
If TRUE, print the starting and ending index (or indices) of the desired substring(s). |
addNames |
If TRUE, and if |
drop.na |
If TRUE, remove empty strings from the return value. |
warn.if.gt.1 |
If TRUE, warn if a string has more than one pair of bracketed target strings. |
For a single input string s
, the return value is the desired substring sandwiched between before
and after
. For a vector of inputs, list of outputs.
Roger Day
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.