Skip to contents

For each string in x, applies OR.delim.split() and checks whether any delimited element matches one or more specified strings.

Usage

OR.delim.contains(x, match, delimiter = ",", partial = FALSE)

Arguments

x

String vector, matrix, or data frame containing delimited strings.

match

String vector of elements to match.

delimiter

String delimiter. Default = ",".

partial

Logical. If TRUE, each delimited element is tested for substring matches against the provided match strings. If FALSE (default), matches must be exact.

Value

A logical vector or matrix indicating whether each string contains a delimited element matching any of the specified strings.