powered by
Find string in another string (without regular expressions), returns indices of the first occurence only.
str_find1(string, patternNoRegex)
string in which we try to find something
string we want to find, "as it is" - no regular exprressions
index of the first occurence only (1 = 1st character)
1
str_find, str_contains, isString
str_find
str_contains
isString
# NOT RUN { str_find1("Hello, hello, hello world", "ell") # 2 str_find1("Hello, hello, hello world", "q") # integer(0) # }
Run the code above in your browser using DataLab