Equivalent of .Contains() in Insight Maker
Usage
contains_IM(haystack, needle)
Arguments
- haystack
Vector or string to search through
- needle
Value to search for
See also
Other custom:
%REM%()
,
expit()
,
filter_IM()
,
indexof()
,
length_IM()
,
logistic()
,
logit()
,
mod()
,
rbool()
,
rdist()
,
rem()
,
round_IM()
,
shuffle()
,
substr_i()
Examples
contains_IM(c("a", "b", "c"), "d") # FALSE
#> [1] FALSE
contains_IM(c("abcdef"), "bc") # TRUE
#> [1] TRUE