::str_detect("ravi chowdhury", "ravi") stringr
[1] TRUE
Ravi C
January 25, 2023
To filter using str_detect, generally you can use the code as follows:
as we can see the it returns logical TRUE which means it was able to find the string, however str_detect is case sensitive as seen below:
To fix this we can use regex function ignore_case