Wrapper for `str_which()` while ignoring case, returns what index into the string the pattern is found

string_which(str, pattern)

Arguments

str

String or vector of strings to search through

pattern

Pattern to look for

Value

Integer index into the string that the pattern was found