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
If you want to search for one set of strings in another set of strings, case insensitively, you could try:
s1 = c("a", "b") s2 = c("B", "C") matches = s1[ toupper(s1) %in% toupper(s2) ]