Skip to contents

Equivalent of .Contains() in Insight Maker

Usage

IM_contains(haystack, needle)

Arguments

haystack

Vector or string to search through

needle

Value to search for

Value

Boolean

Examples

IM_contains(c("a", "b", "c"), "d") # FALSE
#> [1] FALSE
IM_contains(c("abcdef"), "bc") # TRUE
#> [1] TRUE