bind_or {qdapRegex} | R Documentation |
Boundary Wrap (Bind) and 'or' Concatenate Elements
Description
A wrapper for bind
and pastex
that wraps each sub-expression
element with left/right boundaries (\b
by default) and then
concatenate/joins bound strings with a regex 'or' ("|"). Equivalent to
pastex(bind(...), sep = "|")
.
Usage
bind_or(..., group.all = TRUE, left = "\\b", right = left)
Arguments
group.all |
logical. If |
left |
A single length character vector to use as the left bound. |
right |
A single length character vector to use as the right bound. |
... |
Regular expressions to paste together or a named expression
from the default regular expression dictionary prefixed with single at
( |
Examples
bind_or(LETTERS)
bind_or("them", "those", "that", "these")
bind_or("them", "those", "that", "these", group.all = FALSE)
[Package qdapRegex version 0.7.8 Index]