| indexof | R Documentation |
Find index of value in vector or string. Equivalent of .IndexOf() in Insight Maker.
indexof(haystack, needle)
haystack |
Vector or string to search through |
needle |
Value to search for |
Index, integer
indexof(c("a", "b", "c"), "b") # 2
indexof("haystack", "hay") # 1
indexof("haystack", "m") # 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.