R/custom_func.R
contains_IM.Rd
Check whether value is in vector or string. Equivalent of .Contains() in Insight Maker.
contains_IM(haystack, needle)
Vector or string to search through
Value to search for
Logical value
contains_IM(c("a", "b", "c"), "d") # FALSE #> [1] FALSE contains_IM(c("abcdef"), "bc") # TRUE #> [1] TRUE