I have a string
vec = c('blue','red','flower','bee')
I want to convert different strings into the same in one line instead of seperately i.e. i could gsub blue and gsub red to make them both spell 'colour'. How can I do this in one line?
output should be: 'colour','colour','flower','bee'