Description Usage Arguments Examples
This function allows the substitution syntax to mimic perl's very closely. As in perl the first character is used as a delimiter to separate the regular expression and options. Paired delimiters are supported as in perl, so both '/this/' and 'this' are both supported for instance.
1 |
pattern |
a character delimited regular expression pattern like those in perl |
data |
character vector to substitute |
1 2 3 | string = c('this is a Test', 'string')
string %s% '/this/that/'
string %s% '{is}{at}g'
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.