Function to find a pattern in a vector of strings via a call to base::grepl.

find_pattern(s, pattern)

Arguments

s

A character vector.

Value

A logical vector.

Examples

find_pattern( 'a', c( 'cat', 'dog', 'bat' ) )
#> Warning: argument 'pattern' has length > 1 and only the first element will be used
#> [1] FALSE