Description Usage Arguments Value
Utility function to collapse a character vector into a Regex pattern. The vector elements will be surrounded by word boundaries, and combined with logical ORs. The whole thing is wrapped in parantheses to catch it as a group.
1 |
x |
A character vector. |
The elements of x
surrounded by Regex word boundaries,
collapsed with logical ors, and surrounded by parantheses:
(\\bx[1]\\b|\\bx[2]\\b|...)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.