I would like some help. I\'m developing an algorithm in R and I have to perform many substitutions within string. The algorithm is already working but I would like to make i