Search and replace in every column of a data frame.
Usage
col_replace(df, pattern, replacement)
Arguments
- df
A data frame
- pattern
The pattern to search for (regular expression)
- replacement
The replacement.
Value
A data frame with the pattern replaced in every column.