powered by
Equivalent of .IndexOf() in Insight Maker.
indexof(haystack, needle)
Index, integer
Vector or string to search through
Value to search for
indexof(c("a", "b", "c"), "b") # 2 indexof("haystack", "hay") # 1 indexof("haystack", "m") # 0
Run the code above in your browser using DataLab