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

View source: R/cass_utils.R

cass_combine_into_patternR Documentation

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

Description

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)

giocomai/castarter documentation built on June 12, 2025, 8:49 p.m.