Search every character column of a data frame for a pattern.
Arguments
- df
A data frame
- pattern
The pattern to search for (regular expression)
Value
A data frame where each character column is replaced with "HIT" if
it matches the pattern and "" if it doesn't.