%s% | R Documentation |
This simplifies the syntax of regular expression matching.
text %s% pat
text |
text to match against pattern |
pat |
regular expression, and replacement |
a vector of the sam elength as text, with substituted items
> text <- c('a','b','c')
> text %s% c('[ab]','_')
[1] "_" "_" "c"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.