Replicates the use of index function in SAS
for logic options
Source: R/stream_filter.R
stream_filter_index.Rd
Assumption is that use in filters is to only resolve true vs false
Primarily for use with stream_filter and related stream_filter_convwhere
functions
Examples
AEACN <- c("DRUG MODIFIED", "DRUG STOPPED", "DOSE/DRUG MODIFIED")
stream_filter_index(AEACN, "DRUG MODIFIED")
#> [1] TRUE FALSE TRUE