Description Usage Arguments Examples
get the pattern for correct (simple) searches, characterized by providing the initial sequence of the string wanted, where the code searched is concatenated. Note: this function mainly serves as an example for the author to remember how to do this! Be aware if your search strings are more complicated as the author is no expert in regular expression.
1 | pattern_conc_search(s, code.sep = " ")
|
s |
string to match initial part of code |
code.sep |
the string that servers as separator in the concatenation |
1 2 3 4 5 6 7 | x <- c("ABC", "", "FFF XXX", "GGG ABC FOO",
"BAR ABC", "FOO BAR ABB", " ", ";")
s.term = c("ABC", "X")
grepr(pattern = pattern_conc_search(s.term), x = x)
## sample example, different separator:
y <- gsub(pattern = " ", replacement = ";", x)
grepr(pattern = pattern_conc_search(s.term, code.sep = ";"), x = y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.