I am trying to filter a data frame where I need to search for a regular expression within the data frame. dim(df)[1] 10299 561I wanted to know if there is a way, I could find the name(s) of the column(s) where a particular regex may be available.As an example, how do I find the name of the column where 'rsi' is present. I am referring to iris. 
Find the column(s) name where the value of the variable matches a regex
r
Would this work for you, names(iris)[apply(iris, 2, function(x) any(grepl(rsi, x)))]