Description Usage Arguments Value
View source: R/grep_construct.R
utility function that creates regular expression for grep calls in bow and dfm analysis
1 | grep_construct(text_input, collapse = FALSE)
|
text_input |
a character vector or list of character vectors to be turned into regular expression |
collapse |
when TRUE function collapses text_input into a single regex string. when FALSE function creates a vector or regex strings. defaults to FALSE |
a list of regular expressions if input was a list or a regular expression character vector if input was vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.