I need to write a generic function for "find and replace in R". How can I write a function that takes the following inputs
- A CSV file (or data frame)
- A string to find, for example "name@email.com"
- A string the replace the found string with, for example "medium"
and rewrites the CSV file/data frame so that all the found strings are replaced with the replacement string?