containstext: Test for a pattern match anywhere in the string

View source: R/primitives.R

containstextR Documentation

Test for a pattern match anywhere in the string

Description

Test for a pattern match anywhere in the string

Usage

containstext(x, pattern, fixed = FALSE)

Arguments

x

An atomic vector.

pattern

A regular expression (or fixed string when fixed = TRUE).

fixed

Use fixed (non-regex) matching instead of regular expressions.

Value

A logical vector.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.