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
Assuming that there are no variable names which differ only in case, you can search your all-lowercase variable name in tolower(names(myDataFrame)):
tolower(names(myDataFrame))
match("b", tolower(c("A","B","C"))) [1] 2
This will produce only exact matches, but that is probably desirable in this case.