Description Usage Arguments Author(s) Examples
This takes two arguments just like gsub
- a patterns and a replacement.
It will totally overwrite any element where the pattern is matched with the second.
If you want to simply apply a regex (i.e. replace only the specific bit that matches),
use %regex=%
instead. If you want to replace with nothing (""), just just %-%
or
%-=% instead
.
1 | x %regex<-% value
|
x |
a character vector |
value |
c(pattern, replacement) |
Ben Wiseman, benjamin.wiseman@kornferry.com
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.