Is there a way to control the case sensitivity of the %in% operator? In my case I want it to return true no matter the case of the input:
stringList <- c("hello", "world")
"Hello" %in% stringList
"helLo" %in% stringList
"hello" %in% stringList
Consider this code as a reproducible example, however in my real application I am also using a list of strings on the left and check for the presence of words from stringList.