Find index of needle (value) in haystack (vector)
indexof.Rd
Equivalent of .IndexOf() in Insight Maker
Examples
indexof(c("a", "b", "c"), "b") # 2
#> [1] 2
indexof("haystack", "hay") # 1
#> [1] 1
indexof.Rd
Equivalent of .IndexOf() in Insight Maker
indexof(c("a", "b", "c"), "b") # 2
#> [1] 2
indexof("haystack", "hay") # 1
#> [1] 1