Description Usage Arguments Details Value Note See Also Examples
If there is a match, returns TRUE and also assigns the match result to a variable in the current environment ('.match' by default).
1 | lhs %?~% rhs
|
lhs |
the string to be matched |
rhs |
a regular expression string or RegularExpression object (obtained from 'get.regexp' or 'RE'). |
Note: if lhs is not a string, this method tries to coerce it to one.
logical
due to the way scoping works in R, the value of the match variable will be overwritten upon each use of this operator. To perform nested use of this operator, you need to place each within a 'local()' block.
local
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.