group_or {qdapRegex} | R Documentation |
Group Wrap and 'or' Concatenate Elements
Description
A wrapper for group
and pastex
that wraps each sub-expression
element with grouping parenthesis and then concatenate/joins grouped strings
with a regex 'or' ("|"). Equivalent to pastex(group(...), sep = "|")
.
Usage
group_or(..., group.all = TRUE)
Arguments
group.all |
logical. If |
... |
Regular expressions to paste together or a named expression
from the default regular expression dictionary prefixed with single at
( |
Examples
group_or("@rm_hash", "@rm_tag")
group_or("them", "those", "that", "these")
group_or("them", "those", "that", "these", group.all = FALSE)
[Package qdapRegex version 0.7.8 Index]