powered by
strRep(s, old, new)
old
new
s
gsub
regexprep
S <- c('This is a good example.', "He has a good character.", 'This is good, good food.', "How goodgood this is!") strRep(S, 'good', 'great')
Run the code above in your browser using DataLab