Can I search a character list for a string where I don\'t know how the string is cased? Or more generally, I\'m trying to reference a column in a dataframe, but I don\'t kn
For anyone using this with %in%, simply use tolower on the right (or both) sides, like so:
%in%
tolower
"b" %in% c("a", "B", "c") # [1] FALSE tolower("b") %in% tolower(c("a", "B", "c")) # [1] TRUE