Description Usage Arguments Value Author(s) Examples
The operator %o~% is used to retain the only the part of the txt
that matches the regular expression.
1 | txt %o~% pattern
|
txt |
Character vector |
pattern |
Regular expression |
In case where parts of the regular expression are surrounded by brackets, the operator returns a matrix with as many lines as the length of txt and as many columns as chunks of regular expressions.
Romain Francois francoisromain@free.fr
1 2 | x <- c("foobar","barfooooooooooooobar")
x %o~% "fo+"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.