gsub(pattern, replacement, x)
I don’t know why it took me so long to discover that this function existed in R.
Notify me of follow-up comments via email.