Skip to contents

Combines a vector of words into a string to be used for regex matching.

Usage

cass_combine_into_pattern(words, full_words_only = TRUE)

Arguments

words

A character vector of words to be combined for string matching.

full_words_only

Logical, defaults to TRUE. If TRUE, the correspondent words are matched only when they are a separate word.

Value

A character vector of length one, ready to be used for regex matching.

Examples


words <- c("dogs", "cats", "horses")

cass_combine_into_pattern(words)
#> Error in cass_combine_into_pattern(words): could not find function "cass_combine_into_pattern"