Builds a text-match operator for use with text filter attribute functions such as lotNumber, stopReason, uniqueDeviceId.

stringContains(x)

# S4 method for character
stringContains(x)

Arguments

x

Character substring to match.

Value

An opAttributeCharacter for use inside text attribute functions.

Examples

# Drug exposures where lot number contains "LOT"
drugExposure(cs(1L, name = "drug"), lotNumber(stringContains("LOT")))
#> <Capr DrugExposure Query> drug