Finds a text among column names and return it as it is
findCols(pattern, df, exact = FALSE, value = TRUE)
character string containing a string or regular expression to be matched in the given character vector
A data.frame among whichs column names to look for the pattern
A logical flag whether to return all matches or just that text. This is always case insensitive.
A logical flag (to be passed to grep()). If FALSE, a vector containing the (integer) indices of the matches determined by grep is returned, and if TRUE, a vector containing the matching elements themselves is returned.
A vector with the column names that match the pattern