grep_construct: utility function that creates regular expression for grep...

Description Usage Arguments Value

View source: R/grep_construct.R

Description

utility function that creates regular expression for grep calls in bow and dfm analysis

Usage

1
grep_construct(text_input, collapse = FALSE)

Arguments

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

Value

a list of regular expressions if input was a list or a regular expression character vector if input was vector


till-tietz/rbow documentation built on Oct. 21, 2021, 9:16 p.m.